{"id":20637529,"url":"https://github.com/long-gong/open-bloom-filter-wrapper","last_synced_at":"2026-05-09T06:05:04.701Z","repository":{"id":176487775,"uuid":"269639062","full_name":"long-gong/open-bloom-filter-wrapper","owner":"long-gong","description":"Open Bloom Filter (Python Wrapper)","archived":false,"fork":false,"pushed_at":"2020-06-05T13:58:43.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-17T08:15:04.108Z","etag":null,"topics":["bloom-filter","python","python-wrapper"],"latest_commit_sha":null,"homepage":"https://github.com/long-gong/open-bloom-filter-wrapper","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/long-gong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-06-05T13:08:35.000Z","updated_at":"2020-06-05T13:59:49.000Z","dependencies_parsed_at":"2023-09-25T06:46:53.873Z","dependency_job_id":null,"html_url":"https://github.com/long-gong/open-bloom-filter-wrapper","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"060b834c0ebb2ef4a9636745bba7c5e7bac2118a"},"previous_names":["long-gong/open-bloom-filter-wrapper"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/long-gong%2Fopen-bloom-filter-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/long-gong%2Fopen-bloom-filter-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/long-gong%2Fopen-bloom-filter-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/long-gong%2Fopen-bloom-filter-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/long-gong","download_url":"https://codeload.github.com/long-gong/open-bloom-filter-wrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242667470,"owners_count":20166304,"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","python","python-wrapper"],"created_at":"2024-11-16T15:14:49.250Z","updated_at":"2026-05-09T06:04:59.680Z","avatar_url":"https://github.com/long-gong.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Open Bloom Filter \n\n[Open Bloom Filter](https://github.com/long-gong/open-bloom-filter-wrapper) is a Python wrapper for [C++ Bloom Filter Library](https://github.com/ArashPartow/bloom).\n\n## Install \n\n```bash \nmake install\n```\n\n## Usage\n\n```python\nfrom open_bloom_filter import BloomFilter\n\nif __name__ == \"__main__\":\n    entries = 1000000\n    fpr = 0.01\n    bf = BloomFilter(entries, fpr)\n    print(\n        \"size (number of bits): %i, number of hash functions: %i\"\n        % (len(bf), bf.num_hashes())\n    )\n\n    print(f\"{entries}\")\n    for i in range(entries):\n        bf.add(i)\n    for i in range(entries):\n        assert i in bf\n    cf = 0\n    ct = 0\n    for i in range(entries, 2 * entries):\n        if i in bf:\n            cf += 1\n        ct += 1\n    print(f\"fpr: {100.0 * cf / ct}%\")\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flong-gong%2Fopen-bloom-filter-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flong-gong%2Fopen-bloom-filter-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flong-gong%2Fopen-bloom-filter-wrapper/lists"}