Skip to content

Pure Python API for Maxmind's binary GeoIP databases

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

patricksmith/pygeoip

 
 

Repository files navigation

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] http://www.maxmind.com/app/python
[2] http://pear.php.net/package/Net_GeoIP/
[3] http://github.com/appliedsec/pygeoip

About

Pure Python API for Maxmind's binary GeoIP databases

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 89.4%
  • JavaScript 10.6%