Skip to main content

Python API for IP2Location database.

Project description

IP2Location 8.0.3

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

Uploaded Source

Built Distribution

IP2Location-8.0.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: IP2Location-8.0.3.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for IP2Location-8.0.3.tar.gz
Algorithm Hash digest
SHA256 945ed47690abeb269ab2b10e55a41b12d03e85c277d029df96791736095b54ea
MD5 5d390b5b03e942da952b9ed6903a28ee
BLAKE2b-256 b3ec0ea7279a022fc2fb98c680fce8c7527486a927c67f855aba18b4af30e06d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for IP2Location-8.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5fa79bfd18281bc6331f4e9116cc18f992458bbdec96ab0e008ef3d43bbe4f31
MD5 a92b1e5d7419b6dc370b37ba7736f8c3
BLAKE2b-256 8a8d2e1020b55572f6a90df7bbeb19a0979480a7f120780468e8b491ffa7d4f6

See more details on using hashes here.

Supported by

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