Skip to main content

IP2Location Python Library

PyPI PyPI - Downloads PyPI - Python Version

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.

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

URL: https://www.ip2location.com

Metadata

Release files for IP2Location 8.10.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for IP2Location 8.10.5
File Size Uploaded Provenance Actions
ip2location-8.10.5.tar.gz 13.8 kB Without provenance Details for ip2location-8.10.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for IP2Location 8.10.5
File Interpreter ABI Platform Actions
IP2Location-8.10.5-py3-none-any.whl Python 3 none any Details for IP2Location-8.10.5-py3-none-any.whl

Total release size: 28.1 kB

Release files / ip2location-8.10.5.tar.gz

Download URL ip2location-8.10.5.tar.gz
Size 13.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e26bdd214be15a41030f4e7e6771df6ccbc75d743c8853933252369993a6368b
BLAKE2b-256 checksum
How to use checksums
26d16c8d2e3e0076412186827eae5722f9eddb3d7a9bac1c906f1ee00182ff21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / IP2Location-8.10.5-py3-none-any.whl

Download URL IP2Location-8.10.5-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb7e2a54d168a2f082927ca71e166e5c767d48a6c04851e3230cddebc4d34c79
BLAKE2b-256 checksum
How to use checksums
f83283d9735da14416b48e571bfc624823e5b29b36384a2f5f2235c79b21d4ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Security for IP2Location 8.10.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

8.10.5 This release

2 release files No provenance

7.0.2

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page