maxminddb-geolite2
Provides access to the geolite2 database. This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com/
What it is and what it does
maxminddb-geolite2 wraps MaxMind's GeoIP2 library and bundles a snapshot of the GeoLite2 City geolocation database, allowing you to look up geographic information (country, city, coordinates) for a given IP address without needing to download or manage the database separately.
The package ships with a fixed database snapshot from 2018 and has not been updated since. It has no runtime dependencies beyond the MaxMind library it wraps, making it a self-contained installation—but the bundled data is stale and will not reflect current IP address allocations or geopolitical changes.
Use it for:
- Quick geolocation lookups in small projects or scripts where database freshness is not critical.
- Development and testing environments where you need IP-to-location mapping without external API calls.
- Legacy applications that depend on this specific package version and cannot migrate to maintained alternatives.
- Offline geolocation when network access to live GeoIP services is unavailable or undesired.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides geolocation lookups by IP address using MaxMind's GeoLite2 City database, bundled with the package for immediate use.
No. The package is abandoned (last update 2018-07-18), its bundled database is severely outdated, and its license status is unclear. For any production or current geolocation work, use a maintained alternative such as the official MaxMind GeoIP2 library with a current database subscription, or a modern open-source geolocation package. Install only if you are maintaining legacy code that explicitly requires this package.
Install
maxminddb-geolite2 on PyPI
pip
pip install maxminddb-geolite2uv
uv add maxminddb-geolite2poetry
poetry add maxminddb-geolite2Installing maxminddb-geolite2
Before you install
High install friction due to a large bundled database file (maxminddb-geolite2-2018.703.tar.gz). The package is abandoned—last release was 2018-07-18, over 2949 days ago, with no active maintenance.
License in practice
License treatment is unclear; the package metadata declares no SPDX license. The description notes GeoLite2 data is under Creative Commons Attribution-ShareAlike 3.0 Unported, but the package's own license is not specified.
Quickstart
pip install maxminddb-geolite2
from geolite2 import geolite2
reader = geolite2.reader()
result = reader.get('1.1.1.1')
geolite2.close()
The bundled GeoLite2 database is from 2018 and will not be updated; IP geolocation accuracy degrades over time as address allocations change.
Verify before relying
- Whether the 2018-era GeoLite2 data is still accurate enough for production geolocation use.
- Whether the package's license obligations (Creative Commons Attribution-ShareAlike 3.0 for the data) are compatible with your project's license.
- Whether the official MaxMind library dependency is still maintained and compatible with current Python versions.
Package facts
| License | not declared (unclear) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 2,949 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 212,998/month — #9,444 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: maxminddb-geolite2-2018.703.tar.gz
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
geoip2Queries MaxMind's GeoIP web services and…
permissive · top 5,000 on PyPI
geoip2-toolsAutomates downloading and updating of MaxMind…
permissive · top 15,000 on PyPI
maxminddbReads MaxMind DB files to look up geolocation…
permissive · top 5,000 on PyPI
geoip2fastGeoIP2Fast performs fast geolocation lookups…
permissive · top 15,000 on PyPI
mmdb-writerGenerates MaxMind DB (MMDB) format files from…
permissive · top 15,000 on PyPI
IP2LocationLooks up geolocation data (country, region,…
permissive · top 15,000 on PyPI
ip3countryLooks up the ISO 3166-1 alpha-2 country code…
permissive · top 5,000 on PyPI
minfraudPython client library for MaxMind's minFraud…
permissive · top 15,000 on PyPI
ipinfoQueries the IPinfo.io API to retrieve…
permissive · top 15,000 on PyPI
types-geoip2Provides type stubs for the geoip2 package,…
permissive · top 15,000 on PyPI