Skip to main content

This is an IP geolocation library that enables the user to find the country, region, city, latitude and longitude, ZIP code, time zone, ISP, domain name, area code, weather info, mobile info, elevation, usage type, address type and IAB category from an IP address. It supports both IPv4 and IPv6 lookup.

Project description

IP2Location 8.10.3

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

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

ip2location-8.10.3.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

IP2Location-8.10.3-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file ip2location-8.10.3.tar.gz.

File metadata

  • Download URL: ip2location-8.10.3.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for ip2location-8.10.3.tar.gz
Algorithm Hash digest
SHA256 a1ce6b3f9054d4bffc6a7144f15e7885a3bcf270cb639453bf8ecd7242fd54e3
MD5 aaf41cff9dba9e58b5a2d05a1f43230d
BLAKE2b-256 fab5b6460bbfb691500acec9384706d6f11e72f63ceaf105d5bbb17fc9d1ee79

See more details on using hashes here.

File details

Details for the file IP2Location-8.10.3-py3-none-any.whl.

File metadata

  • Download URL: IP2Location-8.10.3-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for IP2Location-8.10.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0296fc117384a71afecf8a94fa388e4828958e90e91fe367c34f6553e3000e65
MD5 b2eebf7dea3039968b2d9ce8360a74a1
BLAKE2b-256 bc7d771e04a250d8c7f981d9d80d20fe06c4ee2c921bd90aa1886aadd32a2e62

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page