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.3

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.3
File Size Uploaded Provenance Actions
banip-3.0.3.tar.gz 39.9 kB With provenance Details for banip-3.0.3.tar.gz

Built distribution (wheel)

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

Total release size: 84.0 kB

Release files / banip-3.0.3.tar.gz

Download URL banip-3.0.3.tar.gz
Size 39.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5c26bfed30e1e98b9367563335e28f17594865de77864891ef244d620c9fc1ea
BLAKE2b-256 checksum
How to use checksums
eca70fdc6d8b6839bf352372f256179a2f63a1a3af24a0a4b9aec28c50fe862f
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 Nov 13, 2026.

Transparency log

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

Download URL banip-3.0.3-py3-none-any.whl
Size 44.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07f06c7268d2e4f0786c5608f2c042d5fc6c66ebb08caeb9a4b10cc4f755f2b7
BLAKE2b-256 checksum
How to use checksums
aa478c173829974e63245f8290a0f5fee8777d49a488f09f707469843695da65
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 Nov 13, 2026.

Transparency log

Security for banip 3.0.3

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.3.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 Nov 13, 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