geoip2-tools
Automatic updates and administration of MaxMind GeoIP2 databases.
What it is and what it does
geoip2-tools wraps the geoip2 library to automate the lifecycle of MaxMind's GeoIP2 databases. Instead of manually downloading and updating geolocation data files, it provides a manager that handles periodic refreshes (defaulting to every 7 days) and exposes a simple interface to query IP addresses against the cached databases. You supply a MaxMind license key, and the tool keeps your local copy of the country, city, or ASN database current.
The package is built on click, requests, and geoip2, making it a thin administrative layer rather than a geolocation engine itself. It's designed for applications that need reliable, up-to-date geolocation lookups without manual database management—but it has been abandoned since early 2022, so compatibility with modern MaxMind services and Python versions is uncertain.
Use it for:
- Automatically refresh GeoIP2 databases in a long-running service without manual intervention or cron jobs.
- Query IP addresses to determine geographic location (country, city) or autonomous system information for logging or analytics.
- Build a geolocation lookup microservice that keeps its data fresh without external orchestration.
- Integrate geolocation checks into an application that needs to block or route traffic by country or ASN.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Automates downloading and updating of MaxMind GeoIP2 databases, keeping geolocation data current with periodic refreshes and providing a manager interface to query IP addresses for geographic and ASN information.
No. The package is abandoned (last commit 2022-02-06, no updates since 0.1.1 in 2020), creating significant risk of incompatibility with current MaxMind APIs and modern Python environments. While the MIT license and low install friction are favorable, the maintenance gap makes it unsafe for production use. Consider using geoip2 directly with your own update logic, or evaluate actively maintained alternatives.
Install
geoip2-tools on PyPI
pip
pip install geoip2-toolsuv
uv add geoip2-toolspoetry
poetry add geoip2-toolsInstalling geoip2-tools
Before you install
Low install friction with three straightforward dependencies (click, requests, geoip2), but the package is abandoned—last commit was 2022-02-06 and no updates have shipped since the initial 0.1.1 release in 2020. Maintenance risk is substantial.
License in practice
MIT license is permissive and imposes no restrictions on use or redistribution, making it safe to adopt from a licensing standpoint.
Quickstart
pip install geoip2-tools
from geoip2_tools.manager import Geoip2DataBaseManager
geoip2_manager = Geoip2DataBaseManager('your_license_key')
print(geoip2_manager['country'].reader.country('1.1.1.1').country.name)
Requires a MaxMind license key (free for geolite2 version); must be obtained from MaxMind account before use.
Verify before relying
- Whether the package works with current versions of MaxMind's GeoIP2 API and database formats, given the 2022 abandonment date.
- Compatibility with Python versions beyond 3.8, which was the latest listed at release time.
- Whether the 7-day default refresh interval remains appropriate for current MaxMind database release cycles.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — click, requests, geoip2 |
| Maintenance | abandoned — 2,115 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 403,652/month — #6,915 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: geoip2_tools-0.1.1-py2.py3-none-any.whl
Keywords: geoip2-tools
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
maxminddb-geolite2Provides geolocation lookups by IP address…
unclear · top 15,000 on PyPI
geoip2fastGeoIP2Fast performs fast geolocation lookups…
permissive · top 15,000 on PyPI
geoip2Queries MaxMind's GeoIP web services and…
permissive · top 5,000 on PyPI
maxminddbReads MaxMind DB files to look up geolocation…
permissive · top 5,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
types-geoip2Provides type stubs for the geoip2 package,…
permissive · top 15,000 on PyPI
ipinfoQueries the IPinfo.io API to retrieve…
permissive · top 15,000 on PyPI
ip3countryLooks up the ISO 3166-1 alpha-2 country code…
permissive · top 5,000 on PyPI