Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

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.

Files for bfilter, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size bfilter-1.0.0-py3-none-any.whl (4.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size bfilter-1.0.0.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page