types-maxminddb
Typing stubs for maxminddb
What it is and what it does
types-maxminddb is a PEP 561 type stub package that provides type information for the maxminddb library. It allows static type checkers like mypy, PyCharm, and pytype to understand and validate the types of maxminddb's API, catching type errors at development time rather than runtime.
The package is maintained as part of typeshed. The description notes that maxminddb has shipped its own type annotations since version 2.0.2, so installing this stub package may be unnecessary if you are already using that version or later of maxminddb itself.
Use it for:
- Enable type checkers to validate code that calls maxminddb functions for IP geolocation queries.
- Provide IDE autocomplete and type hints when working with maxminddb APIs.
- Catch type mismatches in geolocation lookup code before runtime in CI/CD pipelines.
- Support maxminddb versions that lack built-in type annotations.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for the maxminddb package, enabling static type checkers like mypy and PyCharm to validate code using maxminddb.
Yes, if you are using maxminddb versions before 2.0.2 and rely on static type checking. No, if you are already on maxminddb 2.0.2 or later, since maxminddb itself now includes type annotations. Check your maxminddb version first to avoid redundant installation.
Install
types-maxminddb on PyPI
pip
pip install types-maxminddbuv
uv add types-maxminddbpoetry
poetry add types-maxminddbInstalling types-maxminddb
Before you install
Low install friction with a single lightweight runtime dependency (types-ipaddress). The package is actively maintained via typeshed, though the latest release is from 2021-09-20.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in most commercial and open-source projects without significant restriction.
Quickstart
pip install types-maxminddb
import maxminddb
# Type checker now understands maxminddb API types
Verify before relying
- Whether maxminddb version 2.0.2 or later is already installed (stub package may be unnecessary in that case)
- Current maintenance status relative to typeshed's active development cycle
Package facts
| License | Apache-2.0 license (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — types-ipaddress |
| Maintenance | actively maintained — 1,789 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 587,586/month — #5,873 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_maxminddb-1.5.0-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
types-attrsProvides PEP 561 type stubs for the attrs…
permissive · top 15,000 on PyPI
types-geoip2Provides type stubs for the geoip2 package,…
permissive · top 15,000 on PyPI
types-WerkzeugProvides PEP 561 type stubs for Werkzeug,…
permissive · top 5,000 on PyPI
types-backportsProvides PEP 561 type stubs for the backports…
permissive · top 15,000 on PyPI
types-Jinja2Provides PEP 561 type stubs for Jinja2,…
permissive · top 5,000 on PyPI
types-dataclassesProvides type stubs for Python's dataclasses…
permissive · top 15,000 on PyPI
types-clickProvides PEP 561 type stubs for the click…
permissive · top 5,000 on PyPI
types-FlaskProvides PEP 561 type stubs for Flask to enable…
permissive · top 5,000 on PyPI
types-tornadoProvides PEP 561 type stubs for tornado,…
permissive · top 15,000 on PyPI
mmdb-writerGenerates MaxMind DB (MMDB) format files from…
permissive · top 15,000 on PyPI