skip to navigation
skip to content

Not Logged In

redis-collections 0.1.4

Set of basic Python collections backed by Redis.

Latest Version: 0.1.5

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.

License: ISC

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

This work is licensed under ISC license.

 
File Type Py Version Uploaded on Size
redis-collections-0.1.4.tar.gz (md5) Source 2013-06-05 16KB
  • Downloads (All Versions):
  • 42 downloads in the last day
  • 173 downloads in the last week
  • 780 downloads in the last month
  • Author: Honza Javorek
  • Home Page: https://github.com/honzajavorek/redis-collections
  • License:
    Copyright (c) 2013, Jan Javorek <jan.javorek@gmail.com>
    
    Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
    
    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  • Package Index Owner: honzajavorek
  • DOAP record: redis-collections-0.1.4.xml