Skip to main content

A Simple Bloom Filter for Python

Project description

# A Simple Bloom Filter for Python

[![Build Status](https://travis-ci.org/sysatom/python-bloom-filter.svg?branch=master)](https://travis-ci.org/sysatom/python-bloom-filter)

### Install

```bash
pip install PyBloomFilter
```

### Usage

```python
from bfilter.bloomfilter import BloomFilter

bf = BloomFilter(100000, 7)
for i in range(5000):
bf.add('%s' % i)

print(bf.lookup('333'))
print(bf.lookup('100000'))
print(bf.lookup('500001'))
print(bf.lookup('510001'))
```

### Requirements

This project requires Python 3.6 or newer.

### License


You can find the license for this code in [the LICENSE file](LICENSE).


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

bfilter-1.0.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

bfilter-1.0.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file bfilter-1.0.0.tar.gz.

File metadata

  • Download URL: bfilter-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.1

File hashes

Hashes for bfilter-1.0.0.tar.gz
Algorithm Hash digest
SHA256 40fc494d94e43a3b36a50c63bb0581605f3bb5a29d140526b85b7dbd26e1c5ed
MD5 643b83520cad26830d2aba992ad9b913
BLAKE2b-256 12f019e3580d20da0401b324ef1c27679dcdcacf040c616b790fc1f5446bd692

See more details on using hashes here.

File details

Details for the file bfilter-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: bfilter-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.1

File hashes

Hashes for bfilter-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e400966938ac452f022f0586b344c2a4f66d7581e0db044774716908f7c00862
MD5 d7584f2d11199950f2adf8650ee7569d
BLAKE2b-256 6de1647c3dd4e39dbf5fb198587d8e8d13538d5a24813995ad05a8518016da8e

See more details on using hashes here.

Supported by

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