ip-address 1.0.0 has been release as a Snap. It acts as a convenience wrapper and filter for ipconfig.io.
usage: ip_address [-h]
{all,ip,country,country-iso,region,zip-code,city,latitude,longitude,geo,time-zone,asn,asn-org,hostname}
...
options:
-h, --help show this help message and exit
subcommands:
valid subcommands
{all,ip,country,country-iso,region,zip-code,city,latitude,longitude,geo,time-zone,asn,asn-org,hostname}
additional help
all show all information (default)
ip show only the ip address
country show only the country
country-iso show only the iso country code
region show only the region
zip-code show only the zip code (post code)
city show only the city
latitude show only the latitude
longitude show only the longitude
geo show only the latitude and longitude
time-zone show only the time-zone
asn show only the asn
asn-org show only the asn-org
hostname show only the hostname address
Example usage:
$ ip-address
ip : 79.79.79.79
country : United Kingdom
country_iso: GB
country_eu : False
region_name: England
zip_code : SE4
city : Lewisham
latitude : 51.4648
longitude : -0.0373
time_zone : Europe/London
asn : AS9105
asn_org : TalkTalk