Skip to main content

A Bloom filter (bloomfilter) for Python 3 built on mmap

Project description

pybloomfiltermmap3 is a Python 3 compatible fork of pybloomfiltermmap by @axiak.

The goal of pybloomfiltermmap3 is simple: to provide a fast, simple, scalable, correct library for Bloom Filters in Python.

Build_Status PyPI_v PyPI_dw PyPI_t

Quickstart

After you install, the interface to use is a cross between a file interface and a ste interface. As an example:

>>> import pybloomfilter
>>> fruit = pybloomfilter.BloomFilter(100000, 0.1, '/tmp/words.bloom')
>>> fruit.update(('apple', 'pear', 'orange', 'apple'))
>>> len(fruit)
3
>>> 'mike' in fruit
False
>>> 'apple' in fruit
True

Docs

Follow the official docs for pybloomfiltermmap. http://axiak.github.io/pybloomfiltermmap/

Install

Please have Cython installed. Please note that this version is specifically meant for Python 3. In case you need Python 2, please see https://github.com/axiak/pybloomfiltermmap.

To install:

$ pip install cython
$ pip install pybloomfiltermmap3

and you should be set.

License

See the LICENSE file. It’s under the MIT License.

Project details


Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pybloomfiltermmap3-0.4.15-cp35-cp35m-macosx_10_11_x86_64.whl (62.1 kB) Copy SHA256 hash SHA256 Wheel cp35
pybloomfiltermmap3-0.4.15.tar.gz (457.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page