inbloom (Python)
Package inbloom implements a portable bloom filter that can export and import data to and from implementations of the same library in different languages.
This implementation is a C extension which wraps libbloom (https://github.com/jvirkki/libbloom)
Installation
pip install inbloom
Usage
import inbloom
bf = inbloom.Filter(entries=100, error=0.01)
bf.add("abc")
bf.add("def")
assert bf.contains("abc")
assert bf.contains("def")
assert not bf.contains("ghi")
bf2 = inbloom.Filter(entries=100, error=0.01, data=bf.buffer())
assert bf2.contains("abc")
assert bf2.contains("def")
assert not bf2.contains("ghi")
Serialization
import inbloom
import binascii
payload = '620d006400000014000000000020001000080000000000002000100008000400'
assert binascii.hexlify(inbloom.dump(inbloom.load(binascii.unhexlify(payload)))) == payload
Metadata
Release files for inbloom 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| inbloom-0.2.2.tar.gz | 11.8 kB | Without provenance | Details for inbloom-0.2.2.tar.gz |
Release files / inbloom-0.2.2.tar.gz
| Download URL | inbloom-0.2.2.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
29944976260b7dfb3c679722a98a40da86a846eed703d65c37db4691280148fc
|
|
BLAKE2b-256 checksum How to use checksums |
f4c6bfa2b9c6769fed0dcfe008e5f3a9f03527135e4abe545054c69ead95072b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for inbloom 0.2.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.