Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A minimal Twitter clone to demonstrate Tornado and MongoDB

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 gevent
Octocat-spinner-32 motor
Octocat-spinner-32 sync
Octocat-spinner-32 README.md
Octocat-spinner-32 requirements.txt
README.md

A trivial Twitter clone. A set of example apps demonstrating asynchronous Python web frameworks with MongoDB.

Installation

git clone git://github.com/ajdavis/chirp.git cd chirp pip install -I -r requirements.txt

Examples

  • sync/chirp_sync.py: Use PyMongo, the standard blocking driver, with Tornado. See the tragic consequences of mixing a blocking driver with a non-blocking web framework.
  • motor/chirp_motor.py: Use Motor, my non-blocking driver for MongoDB and Tornado.
  • gevent/chirp_gevent.py: Just for completeness, use PyMongo with Gevent.
Something went wrong with that request. Please try again.