https://github.com/ip2location/ip2location-python-c
This module is a Python Library with C that enables the user to find the country, region, city, coordinates, zip code, ISP, domain name, timezone, connection speed, IDD code, area code, weather station code, weather station name, mobile, usage type, address type and IAB category that any IP address or host name originates from. https://www.ip2location.com
https://github.com/ip2location/ip2location-python-c
c geolocation-database ip-address-geolocation ip-address-lookup ip-geolocation ip2location ip2location-python python-c python-library
Last synced: 7 months ago
JSON representation
This module is a Python Library with C that enables the user to find the country, region, city, coordinates, zip code, ISP, domain name, timezone, connection speed, IDD code, area code, weather station code, weather station name, mobile, usage type, address type and IAB category that any IP address or host name originates from. https://www.ip2location.com
- Host: GitHub
- URL: https://github.com/ip2location/ip2location-python-c
- Owner: ip2location
- License: mit
- Created: 2019-04-05T00:59:44.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-02-06T01:25:59.000Z (about 2 years ago)
- Last Synced: 2025-08-02T23:47:44.574Z (7 months ago)
- Topics: c, geolocation-database, ip-address-geolocation, ip-address-lookup, ip-geolocation, ip2location, ip2location-python, python-c, python-library
- Language: Python
- Homepage:
- Size: 2.33 MB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: LICENSE.TXT
Awesome Lists containing this project
README
# IP2Location-Python-C
This is a IP2Location Python-C 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. The library used the **IP2Location C Library** to read the geo location information from **IP2Location BIN data** file.
Supported IPv4 and IPv6 address.
This library required the **IP2Location C Library** to work. You can install it from [here]().
## Requirements
1. Python 2.7 and above
2. **[IP2Location C Library]()**.
## Installation
1. Install the **[IP2Location C Library]()**.
2. Download and unzip the package.
3. Execute `python setup.py build`.
4. Execute `python setup.py install`.
## Testing
Run `python sample.py` in your terminal.
## IP2Location BIN Databases
- Download free IP2Location LITE databases at [https://lite.ip2location.com](https://lite.ip2location.com/)
- Download IP2Location Commercial databases at
## 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](mailto:support@ip2location.com).
URL: [https://www.ip2location.com](https://www.ip2location.com/)