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

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.1
File Size Uploaded
banip-3.0.1.tar.gz 37.3 kB Details

Built distribution (wheel)

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

Total release size: 80.6 kB

Release files / banip-3.0.1.tar.gz

Download URL banip-3.0.1.tar.gz
Size 37.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f199482ac3d9aad2f692dd162d1d4ba20cde2fd11d91b9ae8c9ba77999bf7811
BLAKE2b-256 checksum
How to use checksums
d7baf0eea36b37425dcdd0feef49d69194087062e821a5df56646a2dcce73118
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 7, 2026.

Transparency log

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

Download URL banip-3.0.1-py3-none-any.whl
Size 43.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f56a62f0f632736914f2975119f38c2d5994477a3bb0fe4b275752510ed01dfc
BLAKE2b-256 checksum
How to use checksums
24e44059f75f39329a2352a81324c4593f158be301e49f98bf201871825f100f
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 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

3.0.1 This release

2 release files

3.0.0

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.5

2 release files

2.1.4

2 release files

2.1.3

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

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