{"id":18017793,"url":"https://github.com/assafmo/bloomrest","last_synced_at":"2025-04-04T15:43:10.282Z","repository":{"id":82611664,"uuid":"98163005","full_name":"assafmo/BloomREST","owner":"assafmo","description":"Bloom Filters over REST API for remote access","archived":false,"fork":false,"pushed_at":"2018-12-06T13:09:23.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T01:37:45.106Z","etag":null,"topics":["bloom-filter","bloom-filters","http","http-server","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Python","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/assafmo.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-24T07:38:34.000Z","updated_at":"2018-12-06T13:09:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"87531f88-f3b7-4a2e-b42b-31a31fd9fdd8","html_url":"https://github.com/assafmo/BloomREST","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assafmo%2FBloomREST","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assafmo%2FBloomREST/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assafmo%2FBloomREST/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assafmo%2FBloomREST/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/assafmo","download_url":"https://codeload.github.com/assafmo/BloomREST/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247208018,"owners_count":20901568,"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","http","http-server","rest-api"],"created_at":"2024-10-30T04:24:25.145Z","updated_at":"2025-04-04T15:43:10.258Z","avatar_url":"https://github.com/assafmo.png","language":"Python","readme":"Bloom Filters over REST API for remote access.  \nThis probably should not be exposed to end users. :-)  \n\n# Usage\n```bash\ngit clone https://github.com/assafmo/BloomREST.git\ncd BloomREST\n\npip install pybloomfiltermmap\n# or: apt install python-pybloomfiltermmap\n\ncat values\n# =\u003e \n# google.com\n# banana\n# papaya\n\nmaxItems=100\nfalsePositiveRate=0.00001 # 0.001%\nbloomFile=/path/to/new/test.bloom\n\n# if $bloomFile already exists - ignore $maxItems $falsePositiveRate and just add the values to it\ncat values | ./ingest.py $bloomFile $maxItems $falsePositiveRate \n\nport=4096\n./serve.py $bloomFile $port 2\u003e /dev/null \u0026\n\ncurl http://localhost:4096/check -X POST -d '[\"banana\",\"papaya\",\"google.com\",\"batman!\"]'\n# =\u003e\n# [true,true,true,false]\n\ncurl http://localhost:4096/add -X POST -d '[\"batman!\"]'\n\ncurl http://localhost:4096/check -X POST -d '[\"banana\",\"papaya\",\"google.com\",\"batman!\"]'\n# =\u003e\n# [true,true,true,true]\n```\n# Docker\n[https://hub.docker.com/r/assafmo/bloomrest-ingest](https://hub.docker.com/r/assafmo/bloomrest-ingest)  \n[https://hub.docker.com/r/assafmo/bloomrest-serve](https://hub.docker.com/r/assafmo/bloomrest-serve)\n\n```bash\n# Create a bloom filter with one value \"test1\" on your local filesystem ./my.bloom\necho test1 | docker run -i -v $PWD:/data/ assafmo/bloomrest-ingest my.bloom 10 0.001\n\n# Make ./my.bloom your own\nsudo chown $USER:$USER my.bloom\n\n# Mount the directory with ./my.bloom (currently $PWD) to /data/ and pass the new my.bloom path and 4096 as a port to docker (must be 4096!)\ndocker run -d -p 1111:4096 -v $PWD:/data/ assafmo/bloomrest-serve /data/my.bloom 4096\n\ncurl http://localhost:1111/check -d '[\"test1\",\"test2\"]'                                      \n# =\u003e\n# [true, false]\n```\n\n# License\n[MIT](/LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassafmo%2Fbloomrest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fassafmo%2Fbloomrest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassafmo%2Fbloomrest/lists"}