Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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()
Release History

Release History

This version
History Node

2017.0404

History Node

2017.0208

History Node

2015.0708

History Node

2015.0507

History Node

2015.0303

History Node

2015.0206

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
maxminddb-geolite2-2017.0404.tar.gz (24.9 MB) Copy SHA256 Checksum SHA256 Source Apr 25, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting