pyredisbloomfilter
python bloom filter based on redis
python version
python2.7.x and python 3.5+ is supported
redis client requirements
basic dependency redis-py
if your redis is in cluster mode, you must import rediscluter from package redis-py-cluster by yourself
note: redis-py-cluster does not support pipeline with transaction
how to use
import redis
import redisbloomfilter
name = "bloomfilter"
number_of_insertion=10000000
error_rate = 0.00001
redis_client = redis.StrictRedis()
bloom_filter = redisbloomfilter.RedisBloomFilter(name, number_of_insertion, error_rate, redis_client)
try:
bloom_filter.initialize()
except redis.RedisError:
print('occurs redis error')
raise
except redisbloomfilter.BloomFilterException:
print('bloom filter exception')
raise
bloom_filter.put("abc")
bloom_filter.contains("abc")
Metadata
Release files for redis-bloom-filter 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| redis-bloom-filter-1.0.1.tar.gz | 4.4 kB | Without provenance | Details for redis-bloom-filter-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| redis_bloom_filter-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for redis_bloom_filter-1.0.1-py3-none-any.whl |
Total release size: 13.7 kB
Release files / redis-bloom-filter-1.0.1.tar.gz
| Download URL | redis-bloom-filter-1.0.1.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
502d1b86d9c8a463fc94aeb43dbe3e3878396fa7610bed631e2bc558830d7d64
|
|
BLAKE2b-256 checksum How to use checksums |
c41911c3713d3771785972104cd44a5ed517d566bb3ca8cc29256452158d242f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.7.3
|
Release files / redis_bloom_filter-1.0.1-py3-none-any.whl
| Download URL | redis_bloom_filter-1.0.1-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee4e0996c090806ee457b3a5a7e3d32d4ae2c98221f59d2f461a7631e884102d
|
|
BLAKE2b-256 checksum How to use checksums |
a8ee13d1a1d331d22534bf8ce7d9c4ecc6d30b3b7534fa7fd0710c49b7b982da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.7.3
|
Security for redis-bloom-filter 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.