Skip to content

synw/django-changefeed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Changefeed

This module makes it easy to use the realtime capabilities of Rethinkdb in Django.

Features

  • Push data to a table
  • Handle in Django the data coming from the Rethinkdb changefeed

Depends on Celery for the async jobs.

Quick example

Push a document to Rethinkdb:

from changefeed.tasks import push_to_feed

push_to_feed.delay({"message":"Hello world"})

Handle the changefeed events:

# this function will be triggered on every change in the Rethinkdb data
def feed_handlers(database, table, change):
  message = change['new_val']['message']
  print message
  return

Documentation

Read the documentation.

Example app

Jafeed: rss aggregator that listens to the changefeed to display live update notifications

About

Rethinkdb realtime changefeed manager for Django

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages