• Your shopping cart is empty!

IP2Location Python Library

This module is a Python Library to support all IP2Location™ database products. It has been optimized for speed and memory utilization. Developers can use this API to query all IP2Location™ binary databases for IPv4 and IPv6 address.

Installation
  1. Unzip the package.
  2. Execute:
    python setup.py build
  3. Execute:
    python setup.py install
Sample Codes
import IP2Location

IP2LocObj = IP2Location.IP2Location()
IP2LocObj.open("data/IP-COUNTRY-REGION-CITY-LATITUDE-LONGITUDE-ZIPCODE-TIMEZONE-ISP-DOMAIN-NETSPEED-AREACODE-WEATHER-MOBILE-ELEVATION-USAGETYPE-SAMPLE.BIN")
rec = IP2LocObj.get_all("19.5.10.1")

print rec.country_short
print rec.country_long
print rec.region
print rec.city
print rec.isp
print rec.latitude
print rec.longitude
print rec.domain
print rec.zipcode
print rec.timezone
print rec.netspeed
print rec.idd_code
print rec.area_code
print rec.weather_code
print rec.weather_name
print rec.mcc
print rec.mnc
print rec.mobile_brand
print rec.elevation
print rec.usage_type
Sample IP2Location Databases (BIN)
Sample Packages IPv4 IPV6
IP2Location DB1 Sample BIN File Download (743.15 kB) Download (345.77 kB)
IP2Location DB2 Sample BIN File Download (34.84 MB) Download (364.85 kB)
IP2Location DB3 Sample BIN File Download (19.72 MB) Download (358.90 kB)
IP2Location DB4 Sample BIN File Download (51.51 MB) Download (376.07 kB)
IP2Location DB5 Sample BIN File Download (30.09 MB) Download (365.40 kB)
IP2Location DB6 Sample BIN File Download (61.48 MB) Download (381.50 kB)
IP2Location DB7 Sample BIN File Download (57.23 MB) Download (386.01 kB)
IP2Location DB8 Sample BIN File Download (67.47 MB) Download (391.35 kB)
IP2Location DB9 Sample BIN File Download (34.73 MB) Download (369.62 kB)
IP2Location DB10 Sample BIN File Download (72.86 MB) Download (396.93 kB)
IP2Location DB11 Sample BIN File Download (35.42 MB) Download (370.45 kB)
IP2Location DB12 Sample BIN File Download (73.54 MB) Download (397.83 kB)
IP2Location DB13 Sample BIN File Download (33.73 MB) Download (366.87 kB)
IP2Location DB14 Sample BIN File Download (74.77 MB) Download (398.53 kB)
IP2Location DB15 Sample BIN File Download (38.42 MB) Download (375.14 kB)
IP2Location DB16 Sample BIN File Download (79.38 MB) Download (404.58 kB)
IP2Location DB17 Sample BIN File Download (40.73 MB) Download (376.77 kB)
IP2Location DB18 Sample BIN File Download (86.43 MB) Download (415.52 kB)
IP2Location DB19 Sample BIN File Download (70.14 MB) Download (392.61 kB)
IP2Location DB20 Sample BIN File Download (88.87 MB) Download (416.63 kB)
IP2Location DB21 Sample BIN File Download (41.84 MB) Download (377.97 kB)
IP2Location DB22 Sample BIN File Download (92.75 MB) Download (420.25 kB)
IP2Location DB23 Sample BIN File Download (70.55 MB) Download (393.41 kB)
IP2Location DB24 Sample BIN File Download (93.83 MB) Download (421.44 kB)