Core

This module is core module 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.core 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.core.InvalidAttachment
raised when an attachment is invalid

Table Of Contents

Previous topic

Properties and Types

Next topic

Server class

This Page

Quick search