Skip to main content

Async postgresql for Tornado.

Project description

https://img.shields.io/pypi/v/momoko.svg https://img.shields.io/pypi/dm/momoko.svg https://img.shields.io/travis/FSX/momoko.svg

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 Tornado >= 4.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!

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 tcpproxy
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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tornado-async-pg-0.0.5.tar.gz (33.3 kB view details)

Uploaded Source

File details

Details for the file tornado-async-pg-0.0.5.tar.gz.

File metadata

File hashes

Hashes for tornado-async-pg-0.0.5.tar.gz
Algorithm Hash digest
SHA256 084f8e1e9a96cda073046773f1f4ebb09acb8806a28e2bb29a14d02915f24710
MD5 cfc29afe56d3972f493bc6bc9fcb3cf5
BLAKE2b-256 b1355c893046018edf61fc31296b482d23622b11341869d8ba3605f1fdf9a7c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page