Skip to content
forked from FSX/momoko

Wraps (asynchronous) Psycopg2 for Tornado.

License

Notifications You must be signed in to change notification settings

jchumnanvech/momoko

 
 

Repository files navigation

Momoko

Momoko wraps Psycopg2's functionality for use in Tornado. Have a look at tutorial or full documentation.

Important: This is the 2.x version of Momoko. It uses futures instead of calllbacks and introduces slightly different API compared to 1.x version. While trasition is very straight forward, the API is not backward compatible with 1.x!

Installation

With pip:

pip install momoko

Or manually:

python setup.py install

Testing

Set the following environment variables with your own values before running the unit tests:

export MOMOKO_TEST_DB='your_db'
export MOMOKO_TEST_USER='your_user'
export MOMOKO_TEST_PASSWORD='your_password'
export MOMOKO_TEST_HOST='localhost'
export MOMOKO_TEST_PORT='5432'

And run the tests with:

python setup.py test

About

Wraps (asynchronous) Psycopg2 for Tornado.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%