pybloomfiltermmapA Bloom filter for Python built on mmap | |
Download |
pybloomfiltermmap Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- Michael Axiak
- Publisher web site:
- http://search.cpan.org/~axiak/
pybloomfiltermmap Tags
pybloomfiltermmap Description
A Bloom filter for Python built on mmap pybloomfiltermmap's goal is to provide a fast, simple, scalable, correct library for Bloom Filters in Python.DocsYou should probably read the docs online at http://mike.axiak.net/python-bloom-filter/docs/html/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.extend(('apple', 'pear', 'orange', 'apple'))>>> len(bf)3>>> 'mike' in fruitFalseInstallationYou 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 installand you should be set. Requirements: · Python
pybloomfiltermmap Related Software