Show all
Featured downloads:
apidocs.zip pygeoip-0.1.3-py2.5.egg pygeoip-0.1.3-py2.6.egg pygeoip-0.1.3.zip
apidocs.zip pygeoip-0.1.3-py2.5.egg pygeoip-0.1.3-py2.6.egg pygeoip-0.1.3.zip
This is a pure Python alternative to MaxMind's C-based Python API for binary GeoIP databases. It is intended to make it easier to develop on Windows, or to simplify dependencies for things that don't require the speed/features of the C API. It is not entirely a drop-in replacement, but the most notable difference is the new and open methods are gone, in favor of instantiating the GeoIP class directly. The databases aren't distributed with the module, so you'll need to either buy them or download a lite edition here. Requires Python 2.5 or higher (Python 3.x support is in the works).
Supported Flags
- STANDARD (do all reads from disk, slowest)
- MEMORY_CACHE
- MMAP_CACHE (map the whole file to memory, fastest)
Supported Databases
| Type | Methods |
| Country | country_code_by_name, country_code_by_addr, country_name_by_name, country_name_by_addr |
| City | record_by_name, record_by_addr, country_code_by_name, country_code_by_addr, country_name_by_name, country_name_by addr, region_by_name, region_by_addr |
| ISP | org_by_name, org_by_addr |
| Organization | org_by_name, org_by_addr |
| Region | region_by_name, region_by_addr, country_code_by_name, country_code_by_addr |