Module client
source code
Client implementation for CouchDB access. It allows you to manage a
CouchDB server, databases, documents and views. All objects mostly
reflect python objects for convenience. Server and Database objects for
example, can be used as easy as a dict.
Example:
>>> from couchdbkit import Server
>>> server = Server()
>>> db = server.create_db('couchdbkit_test')
>>> doc = { 'string': 'test', 'number': 4 }
>>> db.save_doc(doc)
>>> docid = doc['_id']
>>> doc2 = db.get(docid)
>>> doc['string']
u'test'
>>> del db[docid]
>>> docid in db
False
>>> del server['simplecouchdb_test']
|
Server
Server object that allows you to access and manage a couchdb node.
|
|
Database
Object that abstract access to a CouchDB database A Database object
can act as a Dict object.
|
|
ViewResults
Object to retrieve view results.
|
|
UNKOWN_INFO = { }
|
|
DEFAULT_UUID_BATCH_COUNT = 1000
|
|
__package__ = ' couchdbkit '
|