# maxmind/GeoIP2-python

Python code for GeoIP2 webservice client and database reader

Repository: https://github.com/maxmind/GeoIP2-python
Canonical: https://ross.abutalabs.com/products/geoip2-python
Homepage: https://geoip2.readthedocs.org/en/latest/
Language: Python
License: Apache-2.0
License Family: permissive
Topics: geoip, mmdb, geoip2, maxmind
Last push: 2026-08-25T20:56:01+00:00

## Health v2 (maintenance only)
Score: 89/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 69, longevity 100
- inputs: {"age_days": 4895, "days_push": 8, "days_rel": 48, "gap_med": 96, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1217, forks 142 (observed 2026-08-28T04:04:01.515048+00:00)

## What it is
Official Python client for MaxMind's GeoIP2 and GeoLite web services and a reader for MaxMind MMDB geolocation databases. It lets applications look up country, city, and other data for IP addresses.

## Use cases
- look up the country or city of an IP address in Python
- read MaxMind GeoLite2 mmdb database files
- query the GeoIP2 web service from a web app
- geolocate user requests by IP for analytics or personalization
- add IP-based location data to log processing

## When to choose
- you need IP geolocation in a Python application
- you use MaxMind GeoIP2 or GeoLite2 data sources
- you want an official, maintained client with sync and async support

## When to avoid
- you need offline geolocation without MaxMind data or a license
- you need precise street-level location (IP geolocation is imprecise)
- you work in a non-Python stack

## Facets
- artifact type: library
- maturity: stable
- function: http-client, sdk, database-driver
- domain: apis, developer-tools
- platform: python, cross-platform
- tags: geoip, ip-geolocation, mmdb, maxmind, geolite, geospatial

## Member repositories
- maxmind/GeoIP2-python (main) score 89

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:01.515048+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:17:08.527221+00:00, confidence not recorded.
  - readme: https://github.com/maxmind/GeoIP2-python (fetched 2026-08-28T04:04:01.515048+00:00, sha ec7da5171880)
- Data as of 2026-08-30T08:39:29.467469+00:00.
