Skip to main content

inbloom (Python) ================ - https://github.com/EverythingMe/inbloom/tree/master/py - https://pypi.python.org/pypi/inbloom/ 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 ------------ .. code:: bash pip install inbloom Usage ----- .. code:: 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 ''''''''''''' .. code:: 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.9.tar.gz (11.6 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for inbloom-0.1.9.tar.gz
Algorithm Hash digest
SHA256 f4d713618513f97271b090b9e9b7b5483f2f134f80aa25f42518507b1f930129
MD5 cc27c4a2635a83bee482e77d37fbd6de
BLAKE2b-256 e490a00bbb1bb93ff12845cbd7d09f0ee8f352b13affc7c5e8c7e5a6f3a905e4

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