ip2countryA Python tool for looking up the country in which a given IP address resides | |
Download |
ip2country Ranking & Summary
Advertisement
- License:
- GPL
- Price:
- FREE
- Publisher Name:
- David McNab
- Publisher web site:
- http://www.freenet.org.nz
- Operating Systems:
- Mac OS X
- File Size:
- 5 KB
ip2country Tags
ip2country Description
A Python tool for looking up the country in which a given IP address resides The method used by ip2country for this is downloading/caching the APNIC database. On initial use, a file of approx 300-400k gets downloaded. But on successive usage, the table is read from disk (~/.apnicdb).Apart from monthly download of the table, this module works efficiently, since a web hit is not required for each lookup. Here are some key features of "ip2country": · Maintains a cache of IP address allocations, downloading the table from the APNIC database only if the cached version is missing or stale · Fast lookup - builds optimal lookup tables from the cached APNIC file · Ideal for situations where you want to do frequent lookups within your program · Just run the file under Python to get an interactive demo
ip2country Related Software