A package for geolocating IPs
Project description
pyiplocation
A simple python package to geolocate IPs without the need for a paid/limited API.
Usage
This code snippet :
from pyiplocation import geolocate
geolocate("42.34.78.123")
will return a dictionary containing :
- The IP
- The Hostname
- The Continent Code
- The Continent Name
- The Country Codes
- The Country Name
- The Country Capital
- The State/Province
- The District/County
- The City
- The Zip Code
- The City's Latitude
- The City's Longitude
- The Geoname ID
- A Boolean indicating whether or not the IP is in the EU
- The Calling Code
- The Country TLD
- The Country Languages
- The ISP
- The Connection Type
- The Organization
- The AS Number
- The Country's Currency (name, code, symbol)
- The Timezone (name, offset, current time etc..)
And more!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyiplocation-0.3.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for pyiplocation-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 452846ad6d334af70a0b214ca1c64d3f5f0d054685a0d427a3147fcd14d7e52b |
|
MD5 | bbe3eff5b40b7dc7eddef0065c29cec9 |
|
BLAKE2b-256 | 02226895cbfe44e94e0f5e92a8e8652d31592e06e4620e325513d3e8fb34968d |