Skip to content
forked from ajdavis/chirp

A minimal Twitter clone to demonstrate Tornado and MongoDB

Notifications You must be signed in to change notification settings

pixelkaiser/chirp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 chirp.reqs
cd ..

git clone git@github.com:ajdavis/asyncmongo.git
cd asyncmongo
git checkout getmore # my patch that allows tailable cursors
cd ..

git clone git@github.com:ajdavis/mongo-python-driver.git
cd mongo-python-driver
git checkout motor # my branch with Motor, a Tornado Mongo driver
cd ..


Usage
-----

To run `sync`, the example of using PyMongo with Tornado:

cd sync
PYTHONPATH=../../mongo-python-driver python chirp_sync.py

To run `async`, the example of using AsyncMongo with Tornado:

cd async
PYTHONPATH=../../asyncmongo python chirp_async.py

To run `async_gen`, the example of using AsyncMongo with Tornado's generator
interface:

cd async_gen
PYTHONPATH=../../asyncmongo python chirp_async_gen.py

To run `gevent`, the example using PyMongo 2.2 with Gevent:

cd gevent
PYTHONPATH=../../mongo-python-driver python chirp_gevent.py

About

A minimal Twitter clone to demonstrate Tornado and MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published