Skip to main content

Python API for IP2Location database.

Project description

IP2Location 8.1.0

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, and usage type by IP address or hostname originates from. The library reads the geo location information from IP2Location BIN data file.

Supported IPv4 and IPv6 address.

For more details, please visit: https://www.ip2location.com/developers/python

Requirements

  1. Python 2.2 and above

Installation

  1. Unzip the package.
  2. Execute python setup.py build
  3. Execute python setup.py install

Testing

python sample.py
python test.py

Sample BIN Databases

IPv4 BIN vs IPv6 BIN

  • Use the IPv4 BIN file if you just need to query IPv4 addresses.
  • Use the IPv6 BIN file if you need to query BOTH IPv4 and IPv6 addresses.

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.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

IP2Location-8.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file IP2Location-8.1.0.tar.gz.

File metadata

  • Download URL: IP2Location-8.1.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.5 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.0

File hashes

Hashes for IP2Location-8.1.0.tar.gz
Algorithm Hash digest
SHA256 61dbdab74092f7ef6302c00cc3c322adbdb7fd953b8b810759d590e38c8eac30
MD5 db18a0fffe09e94eca137141dc99926a
BLAKE2b-256 b136d6b117d71b2b40fa7504b0830534486d4ad51b426ecee1d2bebac3ba824e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: IP2Location-8.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.5 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.0

File hashes

Hashes for IP2Location-8.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e4214aef619ef7a152c5eeb43518fda5c07fda245ab323b6be71f8b5fa308f7
MD5 2090c4b85b51b7a28ff491399cc62507
BLAKE2b-256 5901e2d878b4fee1cceef4df47121f0f9e3118a9c15effe64908f7e311e601a5

See more details on using hashes here.

Supported by

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