Skip to main content

# 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) ## Usage ```python 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 ```python import inbloom import binascii payload = '620d006400000014000000000020001000080000000000002000100008000400' assert binascii.hexlify(inbloom.dump(inbloom.load(binascii.unhexlify(payload)))) == payload ```

Project description

UNKNOWN

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inbloom-0.1.7.tar.gz (11.5 kB view details)

Uploaded Source

File details

Details for the file inbloom-0.1.7.tar.gz.

File metadata

  • Download URL: inbloom-0.1.7.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for inbloom-0.1.7.tar.gz
Algorithm Hash digest
SHA256 db1977af70488263b1d150393c7212a517369bb68d01fa61e845ca7f57b01e71
MD5 f23d0626ed20143d0be3bab6257c42c0
BLAKE2b-256 1dce9b2311cced841f45004eae33355be423e600200566648e8757aed5fb0454

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page