{"id":16981104,"url":"https://github.com/masroore/pybloomer","last_synced_at":"2026-05-18T11:33:35.070Z","repository":{"id":157929923,"uuid":"633718195","full_name":"masroore/pybloomer","owner":"masroore","description":"Fast Python Bloom Filter using memory-mapped files","archived":false,"fork":false,"pushed_at":"2023-04-28T09:45:06.000Z","size":2297,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T21:03:31.679Z","etag":null,"topics":["bloom-filter","bloom-filters","bloomfilter","bloomfilter-python","python","python3"],"latest_commit_sha":null,"homepage":"https://pybloomer.readthedocs.io","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"prashnts/pybloomfiltermmap3","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/masroore.png","metadata":{"files":{"readme":"README.markdown","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-28T06:04:03.000Z","updated_at":"2023-04-28T19:42:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"b92e7789-3e66-4104-8bb7-10ab21898d05","html_url":"https://github.com/masroore/pybloomer","commit_stats":{"total_commits":199,"total_committers":34,"mean_commits":5.852941176470588,"dds":0.7989949748743719,"last_synced_commit":"f2ac6641d0e4e10bfa5a5b777302483dcb2bbe8e"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masroore%2Fpybloomer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masroore%2Fpybloomer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masroore%2Fpybloomer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masroore%2Fpybloomer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masroore","download_url":"https://codeload.github.com/masroore/pybloomer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244882351,"owners_count":20525837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bloom-filter","bloom-filters","bloomfilter","bloomfilter-python","python","python3"],"created_at":"2024-10-14T02:04:39.250Z","updated_at":"2026-05-18T11:33:30.033Z","avatar_url":"https://github.com/masroore.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pybloomer\n\n[pybloomer](https://github.com/masroore/pybloomer) is a Python 3 compatible fork\nof [pybloomfiltermmap](https://github.com/axiak/pybloomfiltermmap) by [@axiak](https://github.com/axiak).\n\nThe goal of `pybloomer` is simple: to provide a fast, simple, scalable, correct library for Bloom filters in Python.\n\n[![Documentation Status](https://readthedocs.org/projects/pybloomer/badge/?version=latest)](https://pybloomer.readthedocs.io/en/latest/?badge=latest)\n[![PyPI](https://img.shields.io/pypi/v/pybloomer.svg)](https://pypi.python.org/pypi/pybloomer)\n[![PyPI](https://img.shields.io/pypi/dw/pybloomer.svg)](https://pypi.python.org/pypi/pybloomer)\n[![PyPI](https://img.shields.io/pypi/pyversions/pybloomer.svg)](https://pypi.python.org/pypi/pybloomer)\n\n## Why pybloomer?\n\nThis module implements a Bloom filter in Cython (ANSI C) that's fast and uses memory-mapped files for better\nscalability.\n\nThere are a couple reasons to use this module:\n\n* It natively uses [mmaped files](http://en.wikipedia.org/wiki/Mmap).\n* It is fast (see [benchmarks](http://axiak.github.io/pybloomfiltermmap/#benchmarks)).\n* It natively does the set things you want a Bloom filter to do.\n\n## Installation\n\nTo install `pybloomer`, use the Python 3 version of pip:\n\n```shell\n    $ pip install pybloomer\n```\n\n## Quickstart\n\nHere’s a quick example:\n\n```python\n\u003e\u003e\u003e import pybloomer\n\u003e\u003e\u003e fruits = pybloomer.BloomFilter(capacity=10000000, error_rate=0.01, filename='/tmp/fruits.bloom')\n\u003e\u003e\u003e fruits.update(('apple', 'pear', 'orange', 'apple'))\n\u003e\u003e\u003e len(fruits)\n3\n\u003e\u003e\u003e 'mike' in fruits\nFalse\n\u003e\u003e\u003e 'orange' in fruits\nTrue\n```\n\nTo create an in-memory filter, simply omit the file location:\n\n```python\ncake_ingredients = pybloomer.BloomFilter(capacity=1000, error_rate=0.1)\n```\n\n*Caveat*: in-memory filters cannot be persisted to disk.\n\n## Documentation\n\nCurrent docs are available at [pybloomer.rtfd.io](https://pybloomer.readthedocs.io/en/latest).\n\n## Contributions and development\n\nSuggestions, bug reports, and / or patches are welcome!\n\nWhen contributing, you should set up an appropriate Python 3 environment and install the dependencies listed\nin `requirements-dev.txt`.\n\nPackage installation depends on a generated `pybloomer.c` file, which requires Cython module to be in your current\nenvironment.\n\n## Maintainers\n\n* [Dr. Masroor Ehsan](https://github.com/masroore)\n\n## License\n\nSee the LICENSE file. It's under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasroore%2Fpybloomer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasroore%2Fpybloomer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasroore%2Fpybloomer/lists"}