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-1.0.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file pyiplocation-1.0.tar.gz
.
File metadata
- Download URL: pyiplocation-1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1609642a3aaff2c0cb4f2517f656b5d568bf1598c3dda9a1c56f71a9b40b1cb8 |
|
MD5 | 8d2cde6d7b14e01ccbfd4429efc9a1d8 |
|
BLAKE2b-256 | 83c849c6299fd4def8a60e1eb6ec51e3a971598f8f5d26d0acd376d94ff3b96b |
File details
Details for the file pyiplocation-1.0-py3-none-any.whl
.
File metadata
- Download URL: pyiplocation-1.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73029f509ef251f10818d3a64d6d04290f898be88c520a2f1c4632438cb3556c |
|
MD5 | 411bdfd4f7d7d194880c6e24dacf1f86 |
|
BLAKE2b-256 | 1f28935880de33b0fd679d99a2835f0f13389a9e57739ceb5cdabb229dd69d05 |