Metadata-Version: 2.1
Name: redis-bloom-filter
Version: 1.0.1
Summary: Bloom filter based on redis
Home-page: https://github.com/anexplore/pyredisbloomfilter
Author: anexplore
Maintainer: anexplore
License: Apache
Description: # 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
        ~~~python
        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")
        ~~~
        
        
        
        
        
        
Keywords: bloom filter,redis bloom filter
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Environment :: Web Environment
Classifier: Operating System :: POSIX
Classifier: License :: OSI Approved :: Apache Software License
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4
Description-Content-Type: text/markdown
