py-couchdb
Modern pure python CouchDB Client.
Currently there are several libraries in python to connect to couchdb. Why one more? It's very simple.
All seems not be maintained, all libraries used standard Python libraries for http requests.
Advantages of py-couchdb
- Use requests for http requests (much faster than the standard library)
- CouchDB 2.x and CouchDB 3.x compatible
- Also compatible with pypy.
Example:
>>> import pycouchdb
>>> server = pycouchdb.Server("http://admin:admin@localhost:5984/")
>>> server.info()['version']
'1.2.1'
Installation
To install py-couchdb, simply:
pip install pycouchdb
Documentation
Documentation is available at http://pycouchdb.readthedocs.org.
Logging
py-couchdb is silent by default. Enable its standard-library logger from your application when needed:
import logging
logging.basicConfig(level=logging.INFO)
logging.getLogger("pycouchdb").setLevel(logging.DEBUG)
DEBUG records include safe HTTP and database-operation metadata; INFO records
summarize bulk results. Request and response bodies, credentials, headers,
hostnames, and query parameter values are never logged. See the
logging guide for
formatting and dictConfig examples.
Test
To test py-couchdb, simply run:
pytest -v --doctest-modules --cov pycouchdb
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pycouchdb-1.17.1.tar.gz.
File metadata
- Download URL: pycouchdb-1.17.1.tar.gz
- Upload date:
- Size: 143.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
178ee5fe4a2a05320a7801a2b2a611cfd985aabcff443d43f95216c7502a5ac7
|
|
| MD5 |
7d915d365c4355ef4a6962eb20a5dd97
|
|
| BLAKE2b-256 |
2566b3291293b72b70e7456598f04fe4ae4b6b445211c35491e299de362c9529
|
File details
Details for the file pycouchdb-1.17.1-py3-none-any.whl.
File metadata
- Download URL: pycouchdb-1.17.1-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a012b3cbbd244ebbcfb8b072ebb04b492082fa32b54617a35450671876227b72
|
|
| MD5 |
19f649d809cbb3d1af56b4ab3c8bd1a4
|
|
| BLAKE2b-256 |
cf59a753fd918773dc48f1a077cfd350546cca6d2fd9523e334b5165ed41c578
|