{"id":31547163,"url":"https://github.com/prashnts/pybloomfiltermmap3","last_synced_at":"2025-10-04T15:57:36.240Z","repository":{"id":47279636,"uuid":"54059480","full_name":"prashnts/pybloomfiltermmap3","owner":"prashnts","description":"Fast Python Bloom Filter using Mmap","archived":false,"fork":false,"pushed_at":"2025-09-14T16:11:54.000Z","size":2529,"stargazers_count":127,"open_issues_count":7,"forks_count":26,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-14T18:24:59.607Z","etag":null,"topics":["bloom-filter","python"],"latest_commit_sha":null,"homepage":"https://github.com/prashnts/pybloomfiltermmap3","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prashnts.png","metadata":{"files":{"readme":"README.md","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":"2016-03-16T19:11:35.000Z","updated_at":"2025-09-14T16:11:10.000Z","dependencies_parsed_at":"2024-06-18T20:04:07.767Z","dependency_job_id":null,"html_url":"https://github.com/prashnts/pybloomfiltermmap3","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/prashnts/pybloomfiltermmap3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prashnts%2Fpybloomfiltermmap3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prashnts%2Fpybloomfiltermmap3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prashnts%2Fpybloomfiltermmap3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prashnts%2Fpybloomfiltermmap3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prashnts","download_url":"https://codeload.github.com/prashnts/pybloomfiltermmap3/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prashnts%2Fpybloomfiltermmap3/sbom","scorecard":{"id":743914,"data":{"date":"2025-08-11","repo":{"name":"github.com/prashnts/pybloomfiltermmap3","commit":"9d38016aca0a04f19372e91a8c6bef2db0de66f3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":2,"reason":"Found 4/15 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/python-app.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-app.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/prashnts/pybloomfiltermmap3/python-app.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-app.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/prashnts/pybloomfiltermmap3/python-app.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/python-app.yml:25","Warn: pipCommand not pinned by hash: .github/workflows/python-app.yml:26","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 20 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T18:13:19.982Z","repository_id":47279636,"created_at":"2025-08-22T18:13:19.982Z","updated_at":"2025-08-22T18:13:19.982Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278335452,"owners_count":25970129,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","python"],"created_at":"2025-10-04T15:57:33.960Z","updated_at":"2025-10-04T15:57:36.232Z","avatar_url":"https://github.com/prashnts.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pybloomfiltermmap3\n\n[pybloomfiltermmap3](https://github.com/prashnts/pybloomfiltermmap3) is a Python 3 compatible fork of [pybloomfiltermmap](https://github.com/axiak/pybloomfiltermmap) by [@axiak](https://github.com/axiak).\n\nThe goal of `pybloomfiltermmap3` is simple: to provide a fast, simple, scalable, correct library for Bloom filters in Python.\n\n[![Build Status](https://travis-ci.org/PrashntS/pybloomfiltermmap3.svg?branch=master)](https://travis-ci.org/PrashntS/pybloomfiltermmap3)\n[![Documentation Status](https://readthedocs.org/projects/pybloomfiltermmap3/badge/?version=latest)](https://pybloomfiltermmap3.readthedocs.io/en/latest/?badge=latest)\n[![PyPI](https://img.shields.io/pypi/v/pybloomfiltermmap3.svg)](https://pypi.python.org/pypi/pybloomfiltermmap3)\n[![PyPI](https://img.shields.io/pypi/dw/pybloomfiltermmap3.svg)](https://pypi.python.org/pypi/pybloomfiltermmap3)\n[![PyPI](https://img.shields.io/pypi/pyversions/pybloomfiltermmap3.svg)](https://pypi.python.org/pypi/pybloomfiltermmap3)\n\n## Why pybloomfiltermmap3?\n\nThere are a couple reasons to use this module:\n\n- It natively uses [mmapped 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## Quickstart\n\nAfter you install, the interface to use is a cross between a file\ninterface and an ste interface. As an example:\n\n```python\n    \u003e\u003e\u003e import pybloomfilter\n    \u003e\u003e\u003e fruit = pybloomfilter.BloomFilter(100000, 0.1, '/tmp/words.bloom')\n    \u003e\u003e\u003e fruit.update(('apple', 'pear', 'orange', 'apple'))\n    \u003e\u003e\u003e len(fruit)\n    3\n    \u003e\u003e\u003e 'mike' in fruit\n    False\n    \u003e\u003e\u003e 'apple' in fruit\n    True\n```\n\nTo create an in-memory filter, simply omit the file location:\n\n```python\n    \u003e\u003e\u003e fruit = pybloomfilter.BloomFilter(10000, 0.1)\n    \u003e\u003e\u003e fruit.add('apple')\n    \u003e\u003e\u003e 'apple' in fruit\n    True\n```\n\nThese in-memory filters can be pickled and reloaded:\n\n```python\n    \u003e\u003e\u003e import pickle\n    \u003e\u003e\u003e pickled_fruit = pickle.dumps(fruit)\n    \u003e\u003e\u003e unpickled_fruit = pickle.loads(pickled_fruit)\n    \u003e\u003e\u003e 'apple' in unpickled_fruit\n    True\n```\n\n_Caveat_: it is currently not possible to persist this filter later as an mmap file.\n\n## Docs\n\nCurrent docs are available at [pybloomfiltermmap3.rtfd.io](https://pybloomfiltermmap3.readthedocs.io/en/latest).\n\n## Install\n\nTo install:\n\n```bash\npip install pybloomfiltermmap3\n```\n\nand you should be set.\n\n### Note to Python 2 to \u003c 3.5 users\n\nThis library is specifically meant for Python 3.5 and above. [As of 2020](https://www.python.org/doc/sunset-python-2/), we strongly advise you to switch to an actively maintained distribution of Python 3. If for any reason your current environment is restricted to Python 2, please see [pybloomfiltermmap](https://github.com/axiak/pybloomfiltermmap). Please note that the latter is not actively maintained and will lack bug fixes and new features.\n\n## History and Future\n\n[pybloomfiltermmap](https://github.com/axiak/pybloomfiltermmap) is an excellent Bloom filter implementation for Python 2 by [@axiak](https://github.com/axiak) and contributors. I, [@prashnts](https://github.com/prashnts), made initial changes to add support for Python 3 sometime in 2016 as the current [pybloomfiltermmap3](https://pypi.org/project/pybloomfiltermmap3/) on `PyPI`. Since then, with the help of contributors, there have been incremental improvements and bug fixes while maintaining the API from versions `0.4.x` and below.\n\nSome new features and changes were first introduced in version `0.5.0`. From this point on, the goal is to reach stability, as well as add a few more APIs to expand upon the use cases. While we can't guarantee that we won't change the current interface, the transition from versions `0.4.x` and below should be quick one liners. Please open an issue if we broke your build!\n\nSuggestions, bug reports, and / or patches are welcome!\n\n## Contributions and development\n\nWhen contributing, you should set up an appropriate Python 3 environment and install the dependencies listed in `requirements-dev.txt`.\nPackage installation depends on a generated `pybloomfilter.c` file, which requires Cython module to be in your current environment.\n\n### Environment setup\n\n```bash\n# Installs the venv and python3-dev packages\nsudo apt install python3.10-venv python3-dev\n\n# Creates a virtual env called \"env\"\npython -m venv env\n\n# Activates the created virtual env\nsource ./env/bin/activate\n```\n\n### Dependencies\n\n```bash\npython -m pip install --upgrade pip\npip install cython\n```\n\n### Build\n\n```bash\npython setup.py develop\n```\n\n### Test\n\n```bash\npython setup.py test\n```\n\n## Maintainers\n\n- [Prashant Sinha](https://github.com/prashnts)\n- [Vytautas Mizgiris](https://github.com/vmizg)\n\n## License\n\nSee the LICENSE file. It's under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprashnts%2Fpybloomfiltermmap3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprashnts%2Fpybloomfiltermmap3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprashnts%2Fpybloomfiltermmap3/lists"}