A minimal Twitter clone to demonstrate Tornado and MongoDB
JavaScript CSS Python
Failed to load latest commit information.
gevent Example using Gevent for PyMongo 2.2 with the 'use_greenlets' arg to … Apr 26, 2012
sync Calculate static-path relative to current file, so you can start chir… Jan 29, 2013
README.md README is Markdown now Jan 29, 2013
requirements.txt Don't pin to a particular Motor git version Jan 29, 2013


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


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


  • 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.