resn (REdis Social Network) is a simple library to create social networks. It provides a backend for data models using Redis, supporting friends, followers, updates and a news feed out of the box.
resn (REdis Social Network) is a simple library to create social networks. It provides a backend for data models using Redis, supporting friends, followers, updates and a news feed out of the box. You can use it with any web framework like Django, Flask, Pylons etc. For examples see the file tests.py.
- Latest version of [redis-py](http://github.com/andymccurdy/redis-py)
- Latest version of [redis_wrap](http://github.com/amix/redis_wrap)
Author: Vivek Narayanan <email@example.com>
License: BSD, see LICENSE for more info.
First install redis_py and redis_wrap if you haven’t already:
$ easy_install redis $ easy_install resis_wrap
Then install resn:
$ easy_install resn
To use resn, import the module resn and add this to the beginning of the file.
from resn import * setup_system(‘default’, host, port) # host and port of your redis server, default is localhost:6379
There are a couple of other settings you might want to change.
resn_settings[‘Feed Size’] = 100 # default value = 1000, No of messages in a user’s feed. resn_settings[‘Token Validity’] = 72 * 3600 # This is the default value in seconds
For examples see https://github.com/vivekn/resn/blob/master/tests.py
Support for integrating with Facebook and Twitter APIs is planned.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.