Python API for IP2Location database.
Project description
IP2Location 8.4.1
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
- Python 2.2 and above
Installation
- Unzip the package.
- Execute python setup.py build
- Execute python setup.py install
Testing
python sample.py
python test.py
python lookup.py <ip_address>
Sample BIN Databases
- Download free IP2Location LITE databases at https://lite.ip2location.com
- Download IP2Location sample databases at https://www.ip2location.com/developers
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for IP2Location-8.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbddbd5e3f79c18a9710afd43be09cb21724d7324557668017c545b5c5e62bc4 |
|
MD5 | cae651cc879add582c2fa8422ed10af2 |
|
BLAKE2b-256 | b087d4455844374fac501f2f31643857540fb2ea69e413d32f6764f58b0f0524 |