Skip to main content

banip

banip logo

banip creates country-focused IP blocklists from MaxMind GeoLite2 data, the ipsum threat-intelligence feed, and user-managed configuration.

It supports macOS, Linux, and native Windows with Python 3.12 or newer. Windows Subsystem for Linux is optional for running banip and is the recommended Windows environment for the complete development workflow.

Documentation

Read the full documentation at https://geozeke.github.io/banip/.

It covers installation, configuration, commands, managed bot ranges, development, and the country-code reference.

Quick start

uv tool install --managed-python banip
banip database init
banip database update
banip build

Upgrade an existing installation with uv tool upgrade banip.

For pipx and virtual-environment installation options, see the getting-started guide.

banip database update geolite requires MaxMind credentials. See the getting-started guide for the required account and configuration details.

Development

just setup
just check

See the development guide for focused checks, changelog preparation, and release procedures.

License

banip is released under the MIT license. See LICENSE.

Metadata

Release files for banip 3.0.2

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

Source distribution (sdist)

Source distribution for banip 3.0.2
File Size Uploaded Provenance Actions
banip-3.0.2.tar.gz 39.9 kB With provenance Details for banip-3.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for banip 3.0.2
File Interpreter ABI Platform Actions
banip-3.0.2-py3-none-any.whl Python 3 none any Details for banip-3.0.2-py3-none-any.whl

Total release size: 83.9 kB

Release files / banip-3.0.2.tar.gz

Download URL banip-3.0.2.tar.gz
Size 39.9 kB
Tags Source
SHA-256 checksum
How to use checksums
26c3a1d0ad17073838f2a6d99b76a91ca037e8b123178663992e462a2e245023
BLAKE2b-256 checksum
How to use checksums
d22b0bbbe78234000967d2c34ee1f6f256ec41ee0acfe48def25082ba03b8e38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 20, 2026.

Transparency log

Release files / banip-3.0.2-py3-none-any.whl

Download URL banip-3.0.2-py3-none-any.whl
Size 44.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c4a0fa3e863ec871556249913d323ac5abc7cf4b35be6bb3bcd36a152a48841
BLAKE2b-256 checksum
How to use checksums
21d8801f00a0c98b08b7c196b50703c0d8250803602ad56492aaef46a258933f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 20, 2026.

Transparency log

Security for banip 3.0.2

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for banip-3.0.2.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 20, 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