Package couchdb :: Module client

Module client

Python client API for CouchDB.

>>> server = Server('http://localhost:5984/')
>>> db = server.create('python-tests')
>>> doc_id, doc_rev = db.save({'type': 'Person', 'name': 'John Doe'})
>>> doc = db[doc_id]
>>> doc['type']
'Person'
>>> doc['name']
'John Doe'
>>> del db[doc.id]
>>> doc.id in db
False
>>> del server['python-tests']
Classes
  Server
Representation of a CouchDB server.
  Database
Representation of a database on a CouchDB server.
  Document
Representation of a document in the database.
  ViewResults
Representation of a parameterized view (either permanent or temporary) and the results it produces.
  Row
Representation of a row as returned by database views.