Metadata-Version: 2.1
Name: redisbloom
Version: 0.3.3
Summary: RedisBloom Python Client
Home-page: https://github.com/redislabs/redisbloom-py
Author: RedisLabs
Author-email: oss@redislabs.com
License: UNKNOWN
Description: [![license](https://img.shields.io/github/license/RedisBloom/redisbloom-py.svg)](https://github.com/RedisBloom/redisbloom-py)
        [![PyPI version](https://badge.fury.io/py/redisbloom.svg)](https://badge.fury.io/py/redisbloom)
        [![CircleCI](https://circleci.com/gh/RedisBloom/redisbloom-py/tree/master.svg?style=svg)](https://circleci.com/gh/RedisBloom/redisbloom-py/tree/master)
        [![GitHub issues](https://img.shields.io/github/release/RedisBloom/redisbloom-py.svg)](https://github.com/RedisBloom/redisbloom-py/releases/latest)
        [![Codecov](https://codecov.io/gh/RedisBloom/redisbloom-py/branch/master/graph/badge.svg)](https://codecov.io/gh/RedisBloom/redisbloom-py)
        [![Known Vulnerabilities](https://snyk.io/test/github/RedisBloom/redisbloom-py/badge.svg?targetFile=requirements.txt)](https://snyk.io/test/github/RedisBloom/redisbloom-py?targetFile=requirements.txt)
        
        # Python client for RedisBloom
        [![Forum](https://img.shields.io/badge/Forum-RedisBloom-blue)](https://forum.redislabs.com/c/modules/redisbloom)
        [![Gitter](https://badges.gitter.im/RedisLabs/RedisBloom.svg)](https://gitter.im/RedisLabs/RedisBloom?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
        
        redisbloom-py is a package that gives developers easy access to several probabilistic data structures. The package extends [redis-py](https://github.com/andymccurdy/redis-py)'s interface with RedisBloom's API.  
        
        ### Installation
        ``` 
        $ pip install redisbloom
        ```
        
        ### Usage example
        
        ```python
        # Using Bloom Filter
        from redisbloom.client import Client
        rb = Client()
        rb.bfCreate('bloom', 0.01, 1000)
        rb.bfAdd('bloom', 'foo')        # returns 1
        rb.bfAdd('bloom', 'foo')        # returns 0
        rb.bfExists('bloom', 'foo')     # returns 1
        rb.bfExists('bloom', 'noexist') # returns 0
        
        # Using Cuckoo Filter
        from redisbloom.client import Client
        rb = Client()
        rb.cfCreate('cuckoo', 1000)
        rb.cfAdd('cuckoo', 'filter')        # returns 1
        rb.cfAddNX('cuckoo', 'filter')      # returns 0
        rb.cfExists('cuckoo', 'filter')     # returns 1
        rb.cfExists('cuckoo', 'noexist')    # returns 0
        
        # Using Count-Min Sketch
        from redisbloom.client import Client
        rb = Client()
        rb.cmsInitByDim('dim', 1000, 5)
        rb.cmsIncrBy('dim', ['foo'], [5])
        rb.cmsIncrBy('dim', ['foo', 'bar'], [5, 15])
        rb.cmsQuery('dim', 'foo', 'bar')    # returns [10, 15]
        
        # Using Top-K
        from redisbloom.client import Client
        rb = Client()
        rb.topkReserve('topk', 3, 20, 3, 0.9)
        rb.topkAdd('topk', 'A', 'B', 'C', 'D', 'E', 'A', 'A', 'B', 
                           'C', 'G', 'D', 'B', 'D', 'A', 'E', 'E')
        rb.topkQuery('topk', 'A', 'B', 'C', 'D')    # returns [1, 1, 0, 1]
        rb.topkCount('topk', 'A', 'B', 'C', 'D')    # returns [4, 3, 2, 3]
        rb.topkList('topk')                         # returns ['D', 'A', 'B']
        ```
        
        ### API
        For complete documentation about RedisBloom's commands, refer to [RedisBloom's website](http://redisbloom.io).
        
        ### License
        [BSD 3-Clause](https://github.com/RedisBloom/redisbloom-py/blob/master/LICENSE)
        
Keywords: R,e,d,i,s, ,E,x,t,e,n,s,i,o,n, ,P,r,o,b,a,b,i,l,i,s,t,i,c, ,T,o,p,K, ,C,u,c,k,o,o,-,F,i,l,t,e,r, ,B,l,o,o,m,-,F,i,l,t,e,r, ,C,o,u,n,t,-,m,i,n,-,s,k,e,t,c,h
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: Database
Description-Content-Type: text/markdown
