Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
ajdavis committed Jan 29, 2013
1 parent f47dd6f commit 0324f9f
Showing 1 changed file with 8 additions and 23 deletions.
31 changes: 8 additions & 23 deletions README
Expand Up @@ -7,28 +7,13 @@ Installation
git clone git://github.com/ajdavis/chirp.git
cd chirp
pip install -I -r requirements.txt
cd ..

Usage
-----
Examples
--------

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
* `sync/chirp_sync.py`: Use [PyMongo](http://pypi.python.org/pypi/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](https://github.com/mongodb/motor), my
non-blocking driver for MongoDB and Tornado.
* `gevent/chirp_gevent.py`: Just for completeness, use PyMongo with Gevent.

0 comments on commit 0324f9f

Please sign in to comment.