Skip to main content

Pure Python GeoIP API

Project description

Pure Python GeoIP API. The API is based off of MaxMind’s C-based Python API [1], but the code itself is based on the pure PHP5 API [2] by Jim Winstead and Hans Lellelid.

It is mostly a drop-in replacement, except the new and open methods are gone. You should instantiate the GeoIP class yourself:

gi = GeoIP(‘/path/to/GeoIP.dat’, pygeoip.MEMORY_CACHE)

The only supported flags are STANDARD, MMAP_CACHE, and MEMORY_CACHE

If you have any questions or find a bug, have a look at the project page [3] or contact Jennifer Ennis <jennifer at foobar dot us>

[1] [2] [3]

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pygeoip, version 0.2.3
Filename, size File type Python version Upload date Hashes
Filename, size pygeoip-0.2.3.tar.gz (18.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page