Client

This module is a simple client to access to CouchDB. It allow you to manage server, databases and document. It try to provide all features documented in CouchDB references .

Example:

>>> from simplecouchdb.client import Server
>>> server = Server()
>>> db = server.create_db('simplecouchdb_test')
>>> doc = db.save({ 'string': 'test', 'number': 4 })
>>> docid = doc['_id']
>>> doc2 = db.get(docid)
>>> doc['string']
u'test'
>>> del db[docid]
>>> docid in db
False
>>> del server['simplecouchdb_test']

See also

See more examples in Views classes documentation.

Exceptions

exception simplecouchdb.client.InvalidAttachment
raised when an attachment is invalid
exception simplecouchdb.client.InvalidView
Exception raised when a _design doc is invalid

Table Of Contents

Previous topic

Properties and Types

Next topic

Server class

This Page

Quick search