Skip to main content

maxminddb-polars

Look up IP addresses in MaxMind databases with Polars expressions, implemented in Rust. Read a single field with lookup_path or a record with lookup.

You supply the database. The package does not bundle or download one.

Install it from PyPI with:

python -m pip install maxminddb-polars
from pathlib import Path

import polars as pl
import maxminddb_polars as mmp

database = Path("/data/GeoLite2-City.mmdb")
frame = pl.DataFrame({"ip": ["81.2.69.142", None]})

result = frame.select(
    country=mmp.lookup_path("ip", database, ("country", "iso_code")),
    city=mmp.lookup("ip", database),
)

# The expression namespace is equivalent:
country = pl.col("ip").mmdb.lookup_path(database, ("country", "iso_code"))

lookup detects the schema for 14 standard database families. Pass dtype to read only selected fields or use a custom database. See Custom and partial schemas.

The IP column must have String dtype. Null inputs, lookup misses, and missing paths return null. Invalid IP strings raise an error by default. Pass strict=False to turn them into nulls. Database and schema errors still raise.

To update a database, replace the file atomically and create new expressions. See Database updates for cache behavior and memory limits.

Development

Install the prerequisites in CONTRIBUTING.md and run:

git submodule update --init --recursive
scripts/check

Documentation:

Project policies

The Python API follows Semantic Versioning. The crates.io package is the native implementation of the Python plugin and has no supported Rust API.

Metadata

Release files for maxminddb-polars 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for maxminddb-polars 0.3.0
File Size Uploaded Provenance Actions
maxminddb_polars-0.3.0.tar.gz 182.7 kB With provenance Details for maxminddb_polars-0.3.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for maxminddb-polars 0.3.0
File Actions
maxminddb_polars-0.3.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for maxminddb_polars-0.3.0-cp310-abi3-win_amd64.whl
maxminddb_polars-0.3.0-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details for maxminddb_polars-0.3.0-cp310-abi3-musllinux_1_2_x86_64.whl
maxminddb_polars-0.3.0-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details for maxminddb_polars-0.3.0-cp310-abi3-musllinux_1_2_aarch64.whl
maxminddb_polars-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for maxminddb_polars-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
maxminddb_polars-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for maxminddb_polars-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
maxminddb_polars-0.3.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for maxminddb_polars-0.3.0-cp310-abi3-macosx_11_0_arm64.whl
maxminddb_polars-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for maxminddb_polars-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 47.1 MB

Release files / maxminddb_polars-0.3.0.tar.gz

Download URL maxminddb_polars-0.3.0.tar.gz
Size 182.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f41107392a7adab3fe1557908043c113c819aaa2a3435ea6b7a2544f3bb813c6
BLAKE2b-256 checksum
How to use checksums
63b9a3714d1feef949b2bd038bd6d341f187d361342dbdb1cfebfa18918ba08f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / maxminddb_polars-0.3.0-cp310-abi3-win_amd64.whl

Download URL maxminddb_polars-0.3.0-cp310-abi3-win_amd64.whl
Size 6.3 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
e592b5b8485c2100198b10cf8474e93921b0feb69bc6f5b8a86181ebd206f518
BLAKE2b-256 checksum
How to use checksums
88ec707c5773018565397fc1a24f6af4c5932ebe8165b4abaebefe8db207f5ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / maxminddb_polars-0.3.0-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL maxminddb_polars-0.3.0-cp310-abi3-musllinux_1_2_x86_64.whl
Size 7.6 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
893e0ac8238e0a632973eba5750219c14321274ae5529b736205b7bcc584dfb7
BLAKE2b-256 checksum
How to use checksums
a8465e107d65214a81519b220da3bab97967b037c7a2fe0e65fe830365af7baf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / maxminddb_polars-0.3.0-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL maxminddb_polars-0.3.0-cp310-abi3-musllinux_1_2_aarch64.whl
Size 7.2 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
6c97769ff6b6515f511046e53aaa86bd6a96b3d5971ff3d742de6c6434d9e9c9
BLAKE2b-256 checksum
How to use checksums
f91bce493648e2c075cb9ca5e46efaf0d519180281033e4c014712d1c03251d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / maxminddb_polars-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL maxminddb_polars-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 6.9 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
b9044be6bbde740d3c6a0f568f85f8b75dea69680bdb399b77c0f90a3f6710ba
BLAKE2b-256 checksum
How to use checksums
196f8995a1c8da0b620ed9573f4ff60e936f322414871364f059bb0b4aa64f7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / maxminddb_polars-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL maxminddb_polars-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 7.1 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
b3c34b0a56736f9ff1d01ff8fac25762117c95291ee93adf5dc082960fa6ef2f
BLAKE2b-256 checksum
How to use checksums
5587a22dc3dc88266c18b85ad17f012a250c089ece61d5c88d2ea0d5bf603721
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / maxminddb_polars-0.3.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL maxminddb_polars-0.3.0-cp310-abi3-macosx_11_0_arm64.whl
Size 5.7 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
40a571bae620b27b1e1270e422ab86cce7e97e448ad0b918cd434f4207da2d00
BLAKE2b-256 checksum
How to use checksums
0132b55e1fd462a2d42d236063a333211663b0754d0109a4ff8b0ff026b396e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / maxminddb_polars-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL maxminddb_polars-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 6.0 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
52292b435281878605e52d5ab3f2e17fc85fe0db211232658b49f9305cff4a27
BLAKE2b-256 checksum
How to use checksums
1d74c5f0b21385a3d6493cbf350b93daf18832e11970aa066544e6fd3ed98b10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Security for maxminddb-polars 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 8 files in this release have been uploaded with provenance metadata.

Select from 8 files

Attestation for maxminddb_polars-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page