Skip to main content

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 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

maxminddb-geolite2-2017.0404.tar.gz (24.9 MB view details)

Uploaded Source

File details

Details for the file maxminddb-geolite2-2017.0404.tar.gz.

File metadata

File hashes

Hashes for maxminddb-geolite2-2017.0404.tar.gz
Algorithm Hash digest
SHA256 e55a6fccb7a35d47fbe493b67deca37f7a7742eb3e15d2b3b448c4c8cf88ed56
MD5 999865ceabc383ab6f6351f4fceb6484
BLAKE2b-256 3452fcdda4e48db4b350ce2ef3a81d36cde3b1dbce6549ea8e78ab618bc17f46

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page