# install redis server from source: http://redis.io/download
sudo pip install redis
sudo pip install hiredis # faster c implementation, if available import redis will use hiredis transparently
http://redis-py.readthedocs.org/en/latest/
https://github.com/WoLpH/redis-py
http://redis.io/commands
import redis
r = redis.StrictRedis(host='localhost', port=6379)
r.flushall()
message_total = r.get('messages:total')
r.smembers('active:users')