This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Radishsalad is simple lib for work with redis datastore in more pythonic way.

Base

It include String, Hash, List and Set classes, that represent redis datatypes. You need to initialize datatype with key:

>>> dt.List('main stream').append('Blogger Navalniy discovered new corruption scheme in Russia!')
1L
>>> list(dt.List('main stream'))
['Blogger Navalniy discovered new corruption scheme in Russia!']
>>> up = dt.Hash('0:user profile')
>>> up['name'] = 'deepwalker'
>>> dict(up)
{'name': 'deepwalker'}
>>> 'name' in up
True
>>> friends = dt.Set('friends')
>>> friends.add(1929340)
>>> set(friends)
set(['1929340'])
>>> 1929340 in friends
True

Models

Radishsalad has models module that is not positioned as Django ORM thing. Its just helper for keys name generation. So you create an model:

>>> from radishsalad import models as m
>>> class User(m.Model):
...      name = m.String()
...      subscribers = m.Set()
...      profile = m.Hash()
...      messages = m.List()
...      read = m.List()
...

And for using you need initialize it with key:

>>> user = User(1000)

Now you have user instance, and you can get keys for it members:

>>> user.name.get_key()
'user:1000:name'

Library does not return you a string instead of String objects for using in redis.mget:

>>> from radishsalad.connection import get_redis
>>> r = get_redis()
>>> r.mset(dict((User(i).name.get_key(), i) for i in xrange(40)))
>>> r.mget(User(i).name.get_key() for i in xrange(40))
['0', '1', '2', '3', '4', '5', '6', '7', ... '38', '39']
Release History

Release History

0.1.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
radishsalad-0.1.0.linux-x86_64.tar.gz (6.5 kB) Copy SHA256 Checksum SHA256 any Dumb Binary Sep 6, 2011
radishsalad-0.1.0.tar.gz (3.4 kB) Copy SHA256 Checksum SHA256 Source Sep 6, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting