py-couchdb

Release v1.14.

py-couchdb is a BSD Licensed, modern pure Python CouchDB client.

Currently there are several libraries for Python to connect to CouchDB. Why one more? It’s very simple. All seem to be not maintained, all libraries use standard Python libraries for http requests, and are not compatible with Python3.

Advantages of py-couchdb

  • Uses requests for http requests (much faster than the standard library)
  • Python2 and Python3 compatible with same codebase (with one exception, Python view server that uses 2to3)
  • Also compatible with pypy.

Note

requests 1.2 seems buggy with Python3 and I strongly recommend use request 1.1 if you use Python3

Example:

>>> import pycouchdb
>>> server = pycouchdb.Server("http://admin:admin@localhost:5984/")
>>> server.info()['version']
'1.2.1'