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 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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Momoko-2.2.3.tar.gz
(32.3 kB
view details)
File details
Details for the file Momoko-2.2.3.tar.gz.
File metadata
- Download URL: Momoko-2.2.3.tar.gz
- Upload date:
- Size: 32.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2199b86b734573b3c405bb4855a0ffedf9c8b0ee9c882f78410f7c057c56f3fe
|
|
| MD5 |
51f5b36504d2e7991bda7012edf07b8f
|
|
| BLAKE2b-256 |
439880eeb27511184d99fb2357868d8f04004e078a7bbe9e2909a0e20e30874f
|