Skip to content
This repository

Trombi is an asynchronous CouchDB client for Tornado

tree: 3c38cb1a1f

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 doc
Octocat-spinner-32 test
Octocat-spinner-32 trombi
Octocat-spinner-32 .gitignore Add setup.py and MANIFEST.in, update .gitignore February 16, 2010
Octocat-spinner-32 AUTHORS
Octocat-spinner-32 LICENSE Fix "Copuright" -> "Copyright" May 05, 2011
Octocat-spinner-32 MANIFEST.in Add setup.py and MANIFEST.in, update .gitignore February 16, 2010
Octocat-spinner-32 README.rst Add AUTHORS file to credit the people October 17, 2010
Octocat-spinner-32 setup.py Support Python 3 June 23, 2011
README.rst

Trombi README

Trombi is an asynchronous CouchDB client for Tornado.

trombi is Finnish for a small tornado, occuring in Europe.

Requirements

For running tests:

Documentation

Documentation created using Sphinx is available in doc/ directory. Compiling documentation requires version 0.6.x of Sphinx.

Online documentation can be seen on Github pages.

Issues are reported in Github and there's also a mailing list available in Google Groups.

Example program

import trombi
from tornado.ioloop import IOLoop

def main():
    server = trombi.Server('http://localhost:5984')
    server.get('my_database', database_created, create=True)

def database_created(db):
    if db.error:
        print 'Unable to create database!'
        print db.msg
        ioloop.stop()
    else:
        db.set('my_document', {'testvalue': 'something'}, doc_created)

def doc_created(doc):
    if doc.error:
        print 'Unable to create document!'
        print doc.msg
    else:
        print 'Doc added!'

    ioloop.stop()

if __name__ == '__main__':
    ioloop = IOLoop.instance()
    ioloop.add_callback(main)
    ioloop.start()

More usage examples can be found in tests.

Authors

Possibly incomplete list of authors can be found in AUTHORS file.

License

Trombi is licensed under MIT License. See LICENSE for more information.

Something went wrong with that request. Please try again.