Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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

https://travis-ci.org/jaredlunde/redis_structures.svg?branch=master

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

This version
History Node

0.1.7

History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.1

History Node

0.0.1

History Node

0.0.1a1

History Node

0.0.1a0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
redis_structures-0.1.7.tar.gz (38.1 kB) Copy SHA256 hash SHA256 Source None Apr 7, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page