Redis data structures wrapped with Python 3.
Project description
Redis data structures wrapped with Python 3.
Full documentation can be found at http://docr.it/redis_structures
Installation
redis_structures requires a running Redis server. See Redis’s quickstart for installation instructions.
To install redis_structures:
$ sudo pip install redis_structures
or from source:
$ git clone https://github.com/jaredlunde/redis_structures
$ cd redis_structures
$ sudo python setup.py install
Getting Started
>>> from redis_structures import StrictRedis, RedisHash
>>> client = StrictRedis(host='localhost', port=6379, db=0)
>>> rh = RedisHash("my_hash", prefix="rs:hash" client=client)
>>> rh['hello'] = "world" # sets the field name 'hello' to value 'world' in
>>> # redis under the key rs:hash:my_hash
>>> rh['hello']
'world'
>>> del rh['hello']
>>> rh.get('hello')
None
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
redis_structures-0.1.7.tar.gz
(38.1 kB
view details)
File details
Details for the file redis_structures-0.1.7.tar.gz
.
File metadata
- Download URL: redis_structures-0.1.7.tar.gz
- Upload date:
- Size: 38.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0771324fe348583ffdf7025e4034d8da939435e62bac3a1016216fb89b8e25ff |
|
MD5 | 26226732ae90a934531f850aa727639f |
|
BLAKE2b-256 | f50f401e142dfd7c3bbc845139dac5523bc22023246ed540284e29e140bbff70 |