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!
Metadata
Release files for pyiplocation 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyiplocation-1.0.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyiplocation-1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.4 kB
Release files / pyiplocation-1.0.tar.gz
| Download URL | pyiplocation-1.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1609642a3aaff2c0cb4f2517f656b5d568bf1598c3dda9a1c56f71a9b40b1cb8
|
|
BLAKE2b-256 checksum How to use checksums |
83c849c6299fd4def8a60e1eb6ec51e3a971598f8f5d26d0acd376d94ff3b96b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / pyiplocation-1.0-py3-none-any.whl
| Download URL | pyiplocation-1.0-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
73029f509ef251f10818d3a64d6d04290f898be88c520a2f1c4632438cb3556c
|
|
BLAKE2b-256 checksum How to use checksums |
1f28935880de33b0fd679d99a2835f0f13389a9e57739ceb5cdabb229dd69d05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|