Skip to content

Polars IPTools

Polars IPTools is a Rust-based extension to accelerate IP address manipulation and enrichment in Polars dataframes. This library includes various utility functions for working with IPv4 and IPv6 addresses and geoip and anonymization/proxy enrichment using MaxMind databases.

Install

pip install polars-iptools
# or
uv add polars-iptools

Credit

Developing this extension was super easy by following Marco Gorelli's tutorial and cookiecutter template.

Development

This project uses just for managing development tasks.

Install Just

You can install just using Homebrew or uv:

brew install just
# or
uv tool install rust-just

Usage

just setup          # Set up virtual environment
just install        # Install package in dev mode
just test           # Run tests
just test-matrix    # Run tests across all python versions
just --list         # List all available commands