cclauss / 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.ip2locat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

About

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.ip2locat

License:MIT License


Languages

Language:Python 100.0%