Skip to main content

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.

Project description

resn

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.

Requires:

Author: Vivek Narayanan <mail@vivekn.co.cc>

License: BSD, see LICENSE for more info.

Installation

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

Setting up

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

Examples

For examples see https://github.com/vivekn/resn/blob/master/tests.py

Future

Support for integrating with Facebook and Twitter APIs is planned.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

resn-0.1.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file resn-0.1.tar.gz.

File metadata

  • Download URL: resn-0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for resn-0.1.tar.gz
Algorithm Hash digest
SHA256 3a07c707f3028faa1af077f9499b8af4c55fbe8a3ad4fb34936de18fc2b88902
MD5 c04ab3749b48532cc1fb3a09dd452020
BLAKE2b-256 9711ef6910f6610c4f0f6a4a6155438987929cb84d4bc62995428002b95a004b

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