IP2Location Python Library
This is a IP2Location Python library that enables the user to find the country, region or state, city, latitude and longitude, ZIP code, time zone, Internet Service Provider (ISP) or company name, domain name, net speed, area code, weather station code, weather station name, mobile country code (MCC), mobile network code (MNC) and carrier brand, elevation, usage type, address type and IAB category by IP address or hostname originates from.
This library reads geo-location information from the IP2Location BIN database file and supports lookup for both IPv4 and IPv6 addresses.
Developer Documentation
To learn more about installation, usage, and code examples, please visit the developer documentation at https://ip2location-python.readthedocs.io/en/latest/index.html.
IP2Location BIN Databases
To use this library, you must download the IP2Location BIN database.
- Download Free IP2Location LITE databases at https://lite.ip2location.com
- Download IP2Location commercial databases at https://www.ip2location.com
IPv4 versus IPv6 BIN Database
Below are general guidelines for determining whether to use the IPv4 BIN database or the IPv6 BIN database.
- Use the IPv4 BIN database if you just need to query for IPv4 addresses.
- Use the IPv6 BIN database if you need to query for both IPv4 and IPv6 addresses.
SDK or Library for Other Programming Languages
To learn about other readily available SDKs or libraries for different programming languages, please visit https://www.ip2location.com/development-libraries.
Support
Email: support@ip2location.com
Release files for IP2Location 8.11.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 | |
|---|---|---|---|
| ip2location-8.11.0.tar.gz | 14.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ip2location-8.11.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.6 kB
Release files / ip2location-8.11.0.tar.gz
| Download URL | ip2location-8.11.0.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
444149a741f6575d7711cf5414cfb81f0c44f830e2e94ab968d74665f8baaa31
|
|
BLAKE2b-256 checksum How to use checksums |
7af8b44e07221217f2ef3e1e141fd13fefb439e077696b6a33f3921b323807bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / ip2location-8.11.0-py3-none-any.whl
| Download URL | ip2location-8.11.0-py3-none-any.whl |
|---|---|
| Size | 14.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cee21e91ccffbbc5486c588fac5ea5d210feb7e1754d17090e7c6ab358bab16a
|
|
BLAKE2b-256 checksum How to use checksums |
b33a60a919dc2b3a475472b57994234c26ca6a42bded7140de31e6cd695237cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|