• This repository has been archived on 25/Sep/2022
  • Stars
    star
    363
  • Rank 117,374 (Top 3 %)
  • Language
    Python
  • License
    Other
  • Created over 13 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Wraps (asynchronous) Psycopg2 for Tornado.

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 requires 4.0 <= Tornado < 6.0, uses futures instead of calllbacks and introduces a slightly different API compared to 1.x version. While transition is very straightforward, the API is not backward compatible with 1.x!

Maintainer wanted

Unfortunately none of the developers of this project actively use it anymore in their work. Test-covered pull requests will be happily accepted, but no active development is planned so far. If you have serious intentions to maintain this project, please get in touch.

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:

make -C tcproxy
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