--- id: bloom-filter2 version: "2.0.0" license: MIT license_treatment: permissive maintenance: abandoned --- # bloom-filter2 — Pure Python Bloom Filter module License: permissive · Maintenance: abandoned · Downloads: 431.4K/mo ## What it is and what it does bloom-filter2 provides a Bloom filter—a space-efficient probabilistic data structure that answers "have I seen this element?" with a tunable false positive rate. You specify the maximum number of elements and acceptable error rate, and the module calculates the required bit array size and hash functions automatically. It supports three storage backends: in-memory arrays, memory-mapped files, and disk-seek operations, letting you trade speed for storage footprint. The package is a pure Python implementation with no external dependencies, making it portable across CPython 3.x, PyPy, and Jython. It is useful when you need fast approximate membership testing on large datasets where occasional false positives are acceptable but false negatives are not—typical in caching, duplicate detection, and network routing. Use it for: - Deduplicate incoming data streams without storing the full dataset in memory - Cache-layer membership testing to avoid expensive lookups for items you've never seen - Network packet filtering or URL blacklist checking with bounded memory - Approximate set operations in data pipelines where false positives are tolerable ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. A pure Python implementation of a Bloom filter—a probabilistic data structure for testing set membership with configurable space-accuracy tradeoff, supporting mmap, in-memory, and disk-seek backends. Yes, if you need a simple, dependency-free Bloom filter and can tolerate the lack of active maintenance. The implementation is marked stable and has no known vulnerabilities. However, verify compatibility with your Python version and consider whether an actively maintained alternative is available for production systems where you need ongoing support or bug fixes. ## Install pip install bloom-filter2 uv add bloom-filter2 poetry add bloom-filter2 ## Installing bloom-filter2 Before you install: Low install friction with no runtime dependencies. However, the package is abandoned—last release was 2021-05-05 and the repository shows no commits since 2021-07-06. It is marked Production/Stable but receives no active maintenance. License in practice: MIT license is permissive, allowing commercial and private use with minimal restrictions—suitable for most projects without licensing concerns. Quickstart: pip install bloom-filter2 from bloom_filter2 import BloomFilter bloom = BloomFilter(max_elements=10000, error_rate=0.1) bloom.add("test-key") assert "test-key" in bloom Verify before relying: - Whether the package works reliably on modern Python versions beyond the last release date (2021-05-05) - Performance characteristics and memory footprint compared to active alternatives - Whether mmap and disk-seek backends are production-ready or have known limitations ## Package facts - License: MIT (permissive) - Python support: unspecified - Install friction: low - Maintenance: abandoned - Downloads: 431.4K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags bloom filter python, probabilistic set membership, low storage set datastructure, bloom filter implementation, memory-efficient set testing, false positive probability, bloom filter backends, data-structures, probabilistic-algorithms [View on SkillFed](https://skillfed.io/packages/bloom-filter2) · [View on PyPI](https://pypi.org/project/bloom-filter2/)