Library that offers all types of Bloom filters, implemented in Rust
Project description
______ ______ ___________ ______
___ /_ ___ /______ ______ _______ ___ ___ /___(_)___ /_
__ __ \__ / _ __ \_ __ \__ __ `__ \__ / __ / __ __ \
_ /_/ /_ / / /_/ // /_/ /_ / / / / /_ / _ / _ /_/ /
/_.___/ /_/ \____/ \____/ /_/ /_/ /_/ /_/ /_/ /_.___/
bloomlib: superfast Bloom filters for Python, optimized in Rust
Package | |
Meta |
bloomlib is a Python package that provides superfast Bloom filters, designed to optimize your applications in an easy and intuitive way. It aims to be the go-to package to build and use Bloom Filters that make your applications superfast, memory-efficient and user-friendly.
pip install bloomlib
Table of Contents
- Main Features
- Usage Example
- Installation
- Dependencies
- License
- Documentation
- Development
- Contributing to bloomlib
Main Features
- 🦀 Built in Rust
- ⚡ Highly optimized for speed and memory-efficiency
- 👨🎨 User-friendly
Usage Example
from bloomlib import BloomFilter
# 1. Create the filter
bf = BloomFilter(expected_number_of_items=1_000, desired_false_positive_rate=0.05)
# 2. Add items
for i in range(100):
bf.add(item=i)
# 3. Check if an item is contained; False means definitely not, True means "maybe"
if (bf.contains(item=42)):
print("This item may be in filter")
else:
print("This item is definitely not in the filter")
Installation
pip install bloomlib
The source code is currently hosted on GitHub at: https://github.com/mike-huls/bloomlib
Binary installers for the latest released version are available at the Python Package Index (PyPI).
Dependencies
Bloomlib has no Python dependencies
License
Documentation
🔨 Under construction
Development
Find the changelog and list of upcoming features here.
Contributions are always welcome; feel free to submit bug reports, bug fixes, feature requests, documentation improvements or enhancements!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for bloomlib-0.0.2-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a15e6847048dffb4625f64bb5a8c1463cfee499953b50606a79e8a62e31f578 |
|
MD5 | e749f4b6277f1c07c998852076dc45f1 |
|
BLAKE2b-256 | 214a12ff8866dd8d4b0dfa8c3c4dbda7e737aab2c1218d2ed1153056d02b1f58 |
Hashes for bloomlib-0.0.2-cp39-cp39-manylinux_2_31_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e30b6475a424674d0bbc7a478979eb47f1222907bec19aaf81a1cfc689906e6 |
|
MD5 | fc9aea22c5235ae5394d718c078f1bb2 |
|
BLAKE2b-256 | 818923b2326ee7aceb1f2548df7928e97ab812f7639c24d0717c083d7d6ef7c2 |