Package pygeoip
[hide private]
[frames] | no frames]

Package pygeoip

source code

Pure Python GeoIP API. The API is based off of MaxMind's C-based Python API, but the code itself is based on the pure PHP5 API 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)


Author: Jennifer Ennis <zaylea at gmail dot com>

License: Copyright(C) 2004 MaxMind LLC

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/lgpl.txt>.

Submodules [hide private]

Classes [hide private]
  GeoIPError
  GeoIPMetaclass
  GeoIPBase
  GeoIP
Variables [hide private]
  __package__ = 'pygeoip'