Metadata-Version: 1.1
Name: redis-hash
Version: 0.0.1
Summary: Hash interface for redis-py
Home-page: https://github.com/lamenezes/redis-hash
Author: Luiz Menezes
Author-email: luiz.menezesf@gmail.com
License: MIT
Description-Content-Type: UNKNOWN
Description: ==========
        redis-hash
        ==========
        
        Hash interface for redis-py
        
        Installation
        ============
        
        .. code:: bash
        
            pip install redis_hash
        
        
        Usage
        =====
        
        .. code:: python
        
            from redis import StrictRedis
            from redis_hash import RedisHash
        
            redis_client = StrictRedis(host='localhost', port=6379, db=0)
            redis_hash = RedisHash(redis_client, 'hash_name')
            redis_hash['foo'] = 'bar'
            assert len(redis_hash) == 1
            for k, v in redis_hash:
                print(k, v)  # prints: foo bar
            redis_hash  # returns b'bar'
            list(redis_hash)  # return [(b'foo', b'bar')]
            del redis_hash['foo']
            assert len(redis_hash) == 0
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
