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.
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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pybloomfiltermmap3-0.4.15.tar.gz.
File metadata
- Download URL: pybloomfiltermmap3-0.4.15.tar.gz
- Upload date:
- Size: 457.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4490dc0832fb054a4cd5075fe3f07e66da366fad221d3ebd1b66f51735a2f351
|
|
| MD5 |
020d7ca435bfc099851cd92947e6b0b3
|
|
| BLAKE2b-256 |
1ff63960c292d731968939390d8f03e8158164334e393b486d63d76836af9a09
|
File details
Details for the file pybloomfiltermmap3-0.4.15-cp35-cp35m-macosx_10_11_x86_64.whl.
File metadata
- Download URL: pybloomfiltermmap3-0.4.15-cp35-cp35m-macosx_10_11_x86_64.whl
- Upload date:
- Size: 62.1 kB
- Tags: CPython 3.5m, macOS 10.11+ x86-64
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec3424be0534feb65bc746d5d738d130d82c33ffe2e4e329293b47e814df31df
|
|
| MD5 |
7939f4d6d40efdf552787933b4eb8aa0
|
|
| BLAKE2b-256 |
dddbb595b5087d94a077f5776d3aca30f6aaa22069ad90fd83b5ac2a29161e3e
|