Need help with geoip-api-python?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

maxmind
213 Stars 62 Forks GNU Lesser General Public License v2.1 109 Commits 0 Opened issues

Description

GeoIP Legacy Python API

Services available

!
?

Need anything else?

Contributors list

=========================================

MaxMind GeoIP Legacy Python Extension API

Requirements

  • Python 2.5+ or 3.3+
  • GeoIP Legacy C Library 1.4.7 or greater

Installation

With

pip
:

.. code-block:: bash

$ pip install GeoIP

From source:

.. code-block:: bash

$ python setup.py build
$ python setup.py install

IP Geolocation Usage

IP geolocation is inherently imprecise. Locations are often near the center of the population. Any location provided by a GeoIP database should not be used to identify a particular address or household.

Usage

See the examples in the

examples
folder.

Troubleshooting

If you get a "libGeoIP.so.1: cannot open shared object No such file or directory" error, add /usr/local/lib to /etc/ld.so.conf then run /sbin/ldconfig /etc/ld.so.conf

License

Copyright (c) 2014 MaxMind LLC

All rights reserved. This package is free software; it is licensed under the LGPL 2.1 or greater.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.