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

Provides access to the geolite2 database. This product includes GeoLite2 data created by MaxMind, available from

Project 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 under the Creative Commons Attribution-ShareAlike 3.0 Unported License.


You can get the library directly from PyPI:

$ pip install maxminddb-geolite2


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('')
{'country': ... }
>>> geolite2.close()
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


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