Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Pure Python API for MaxMind GeoIP databases

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 pygeoip
Octocat-spinner-32 tests
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README
Octocat-spinner-32 config.ini
Octocat-spinner-32 convert.py
Octocat-spinner-32 fips_include.txt
Octocat-spinner-32 setup.py
README
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 <zaylea at gmail dot com>

[1] http://www.maxmind.com/app/python
[2] http://pear.php.net/package/Net_GeoIP/
[3] http://code.google.com/p/pygeoip/
Something went wrong with that request. Please try again.