Skip to main content

Set of basic Python collections backed by Redis.

Project description

https://travis-ci.org/honzajavorek/redis-collections.png

Set of basic Python collections backed by Redis.

Status: ACTIVE

Under active development and maintenance.

Installation

The Cheese Shop:

pip install redis-collections

In case you have an adventurous mind, give a try to the source:

pip install git+https://github.com/honzajavorek/redis-collections.git#egg=redis-collections

Example

Redis Collections are a simple, pythonic way how to access Redis structures:

>>> from redis_collections import Dict
>>> d = Dict()
>>> d['answer'] = 42
>>> d
<redis_collections.Dict at fe267c1dde5d4f648e7bac836a0168fe {'answer': 42}>
>>> d.items()
[('answer', 42)]
>>> d.update({'hasek': 39, 'jagr': 68})
>>> d
<redis_collections.Dict at fe267c1dde5d4f648e7bac836a0168fe {'answer': 42, 'jagr': 68, 'hasek': 39}>
>>> del d['answer']
>>> d
<redis_collections.Dict at fe267c1dde5d4f648e7bac836a0168fe {'jagr': 68, 'hasek': 39}>

Available collections are Dict, List, Set, Counter.

Documentation

redis-collections.readthedocs.org

License: ISC

© 2013 Jan Javorek <jan.javorek@gmail.com>

This work is licensed under ISC license.

Project details


Download files

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

Source Distribution

redis-collections-0.1.5.tar.gz (17.0 kB view details)

Uploaded Source

File details

Details for the file redis-collections-0.1.5.tar.gz.

File metadata

File hashes

Hashes for redis-collections-0.1.5.tar.gz
Algorithm Hash digest
SHA256 8a760f8b5ce32ff585de3f1e69439daa609facf017f006461c456cb4936a8fb9
MD5 edf26eabf47656e8cacfbea80eaed762
BLAKE2b-256 e903b66b04579d76613aef80759d39d4591e5ee49534deda1ef6d5f40880e48e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page