Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/axiak/pybloomfiltermmap
Fast Python Bloom Filter using Mmap
https://github.com/axiak/pybloomfiltermmap
Last synced: 3 months ago
JSON representation
Fast Python Bloom Filter using Mmap
- Host: GitHub
- URL: https://github.com/axiak/pybloomfiltermmap
- Owner: axiak
- License: mit
- Created: 2010-04-02T18:49:47.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2019-11-04T22:11:33.000Z (about 5 years ago)
- Last Synced: 2024-08-01T15:39:58.755Z (3 months ago)
- Language: C
- Homepage: http://axiak.github.com/pybloomfiltermmap/
- Size: 2.53 MB
- Stars: 739
- Watchers: 49
- Forks: 138
- Open Issues: 35
-
Metadata Files:
- Readme: README.markdown
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
# pybloomfiltermmap [![Build Status](https://secure.travis-ci.org/axiak/pybloomfiltermmap.png?branch=master)](http://travis-ci.org/axiak/pybloomfiltermmap)
The goal of `pybloomfiltermmap` is simple: to provide a fast, simple, scalable,
correct library for Bloom Filters in Python.## Docs
See .
## 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.