Skip to content

axiak/pybloomfiltermmap

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Claudio Freiretorian
Claudio Freire
and
Sep 30, 2015
97f34f2 · Sep 30, 2015
Feb 24, 2014
Jan 5, 2012
Sep 30, 2015
Feb 24, 2014
Feb 24, 2014
Feb 14, 2015
Feb 14, 2015
Sep 25, 2012
Nov 14, 2011
Jan 5, 2012
Feb 22, 2014
Jan 25, 2013
Feb 14, 2015

Repository files navigation

pybloomfiltermmap Build Status

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

Docs

See http://axiak.github.com/pybloomfiltermmap/.

Overview

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

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

Install

You may or may not want to use Cython. If you have it installed, the setup file will build the C file from the pyx file. Otherwise, it will skip that step automatically and build from the packaged C file.

To install:

$ sudo python setup.py install

and you should be set.

License

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