Provides access to the geolite2 database. This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com/
Project description
Description
maxminddb-geoip is a library that provides access to MaxMind’s GeoIP2 databases. It depends on the official MaxMind library for functionality, but it conveniently ships ships a recent version of the GeoLite2 City database as provided by MaxMind.
This package includes GeoLite2 data created by MaxMind, available from maxmind.com under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
Installation
You can get the library directly from PyPI:
$ pip install maxminddb-geolite2
Usage
Once you have installed the maxminddb-geolite2 package you can start using the database straight away:
>>> from geolite2 import geolite2
>>>
>>> reader = geolite2.reader()
>>> reader.get('1.1.1.1')
{'country': ... }
>>>
>>> geolite2.close()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for maxminddb-geolite2-2015.0206.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a78fb81516d322fb7cfdf7fe70886fbb4f1392679301836ff48b1bb33f0833ee |
|
MD5 | eafff7872a37fb2e6c5e4d9f4f687731 |
|
BLAKE2b-256 | c822dec2b7cf1355eacfa54c9f6611a74c3cfb18a69c094413c4c9f2eebe2b4f |