HOME BUY ONLINE DEVELOPERS PARTNERS SUPPORT ABOUT US CONTACT US
products
DB1 IP2Location™ IP- Country
DB2 IP2Location™ IP- Country-ISP
DB3 IP2Location™ IP- Country-Region-City
DB4 IP2Location™ IP- Country-Region-City-ISP
DB5 IP2Location™ IP- Country-Region-City- Latitude-Longitude
DB6 IP2Location™ IP- Country-Region-City- Latitude-Longitude-ISP
DB7 IP2Location™ IP- Country-Region-City- ISP-Domain
DB8 IP2Location™ IP- Country-Region-City- Latitude-Longitude-ISP- Domain
DB9 IP2Location™ IP- Country-Region-City- Latitude-Longitude- ZIPCode
DB10 IP2Location ™ IP- Country-Region-City- Latitude-Longitude- ZIPCode-ISP- Domain
DB11 IP2Location™ IP-Country-Region-City-Latitude-Longitude-ZIPCode-Timezone
DB12 IP2Location™ IP- Country-Region-City- Latitude-Longitude- ZIPCode-TimeZone -ISP-Domain
DB13 IP2Location™ IP- Country-Region-City- Latitude-Longitude- Timezone-Netspeed
DB14 IP2Location™ IP- Country-Region-City- Latitude-Longitude- ZIPCode-Timezone-ISP-Domain-Netspeed
software products
DNx IP2Location™ .NET Component
JVx IP2Location™ Java Component
AXx IP2Location™ ActiveX/COM DLL
ISx IP2Location™ ISAPI Filter
WS1 IP2Location™ IP-Country Web Service
BOx BrowserObject™ Browser Detection
XML SOAP XML Web Services
CPS Custom Programming Services
free resources
IP2Location™ Application (Free)
IP2Location™ Online Demo (Free)
IP2Location™ Email Header Tracer (Free)
IP2Location™ IPV6-COUNTRY Free Edition
IP2Location™ API (Free)
IP2Location™ Articles & Tutorial (Free)
IP2Location™ Downloader Script (Free)
IP2Phrase™ Geo-Personalized Phrase (Free)
IP2Map™ Visitors Tracking by Map (Free)
World Country Information (Free)
ISO 3166 Country Code List (Free)
Flags of the World (Free)
 

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 the API to qeury all IP2Location™ binary databases for applications written in Python.
 
  Download - Python Module
IP2Location Python Library [ Version 2.1.1 ]
 
  Download - Sample .BIN Files
IP2Location™ DB1 Sample .BIN File
IP2Location™ DB2 Sample .BIN File
IP2Location™ DB3 Sample .BIN File
IP2Location™ DB4 Sample .BIN File
IP2Location™ DB5 Sample .BIN File
IP2Location™ DB6 Sample .BIN File
IP2Location™ DB7 Sample .BIN File
IP2Location™ DB8 Sample .BIN File
IP2Location™ DB9 Sample .BIN File
IP2Location™ DB10 Sample .BIN File
IP2Location™ DB11 Sample .BIN File
IP2Location™ DB12 Sample .BIN File
IP2Location™ DB13 Sample .BIN File
IP2Location™ DB14 Sample .BIN File
 
Note:The demo version of Binary (.BIN) data file consists of IP address range from 0.0.0.0 to 99.255.255.255. The complete Binary (.BIN) data file is available for all paid subscribers at no extra cost. Please contact our sales department for the download information.
 
  Complete .BIN Files (Subscription Required)
IP2Location™ DB1 Full .BIN File
IP2Location™ DB2 Full .BIN File
IP2Location™ DB3 Full .BIN File
IP2Location™ DB4 Full .BIN File
IP2Location™ DB5 Full .BIN File
IP2Location™ DB6 Full .BIN File
IP2Location™ DB7 Full .BIN File
IP2Location™ DB8 Full .BIN File
IP2Location™ DB9 Full .BIN File
IP2Location™ DB10 Full .BIN File
IP2Location™ DB11 Full .BIN File
IP2Location™ DB12 Full .BIN File
IP2Location™ DB13 Full .BIN File
IP2Location™ DB14 Full .BIN File
 
  Requirements
1) IP2Location C API library (download from http://www.ip2location.com/c.htm)
2) Phyton 2.2 and above
3) GNU make or any compatible make utility
 
  Installation
**Note: Please ensure that "library_dirs" and "include_dirs" in setup.py pointing to the right path of C API library
1) python setup.py build
2) python setup.py install
 
  Testing
Unix like platform: python sample_bsd.py
Windows platform : python sample_win.py
 
  Sample Source Codes
import IP2Location;

IP2LocObj = IP2Location.IP2Location();
IP2LocObj.open("data/IP-COUNTRY-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

 
 
 
live product demo
 
IP2Location™ Internet
IP Address 2008
Report
 
live product demo
 
IP Address
 
 
IP2Location Affiliate Program
 
Earn up to 20% on Sales from New Customer and
2-Year Return Commission
More Information
testimonials
"No doubt why security expert, Mike Schiffman, author of the Hacker’s Challenge book series recommended IP2Location™ in IP Geo project".
- S. Jones, California (United States)
"I am very satisfied with my purchase for my ip address log analysis project. Got my account immediately right after order approved. No hassle or delay time at all as I always thought. A must to meet project deadline".
- J. Wagner, New York (United States)
"Innovative products with low price tags compared with others million dollars geo-targeting products".
- Balakrishnan, Bangalore (India)
client list
 
client list
 
as seen in
 
msdn
 
eWeek
 
product overview
 
Take a closer look in this in-depth tour and learn more about IP2Location™ products:
IP2Location™ Product Overview
IP2Location™ Product Brochure
showcase
Web Sites Powered by IP2Location™
Geolocation IP Address by IP2Location Prevent Credit Card Fraud by Fraudlabs Zip Code Database Solution by ZIPCodeWorld.com Geographic City Database by GeoDataSource Browser Detection by BrowserObject