Skip to main content

Set of basic Python collections backed by Redis.

Project description

https://travis-ci.org/honzajavorek/redis-collections.svg https://coveralls.io/repos/github/honzajavorek/redis-collections/badge.svg?branch=master

Set of basic Python collections backed by Redis.

Installation

pip install 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, and DefaultDict.

Documentation

redis-collections.readthedocs.io

Maintainers

License: ISC

© 2013-? Honza Javorek <mail@honzajavorek>

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.2.0.tar.gz (17.1 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for redis-collections-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f72353b43e37e9ac2f0b6abbf26cb305523873d7e713e229464d9e9dbcd3be38
MD5 ab4e2bc126fa0a9228d39e218203715e
BLAKE2b-256 305724e3a96a69f5a88fe5c1a4d57837bef15e61c2a39e11d1e9aacd9f1dd56b

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