skillfed

geoip2-tools

Automatic updates and administration of MaxMind GeoIP2 databases.

geoip2-tools v0.1.1 403.7K downloads/30d#6,915 on PyPI7
Permissive license MIT Abandoned released

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

uv

uv add geoip2-tools

poetry

poetry add geoip2-tools

Installing 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

Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8

Tags

geoip2 database managermaxmind geolite2 updatesip geolocation lookupautomatic geoip database synccountry city asn lookupgeolocation data management
geolocationmaxmindabandoned

More Internet packages