Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Make python objects persistent with Redis.

Project Description

Persistent python objects with Redis backend.

pip install rob


An object that does a JSON dump of the dictionary and save it in a Redis hash.

Needs to define HASH_KEY - the key to the hash.


An object that saves its dictionary in a Redis hash. Using the HMSET. It uses a list to keep track of saved objects.

Needs to define HASH_KEY - a key that is used as prefix to the list and as the key to the hash.


The mixins below will work with all the object types.

Autosave mixin

A mixin that calls save every time an attribute is set.


Simple object

from redis import Redis

class ExampleObject(JsonObject):
    HASH_KEY = 'exampleobject'
    redis = Redis()

Autosave object

from redis import Redis

class ExampleAutosaveObject(JsonObject, AutosaveMixin):
    HASH_KEY = 'exampleobject'
    redis = Redis()

Release History

This version
History Node


History Node


History Node


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
(5.2 kB) Copy SHA256 Hash SHA256
Wheel 3.4 Jan 30, 2015
(2.9 kB) Copy SHA256 Hash SHA256
Source None Jan 30, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers