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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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