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
Release files for pycouchdb 1.17.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pycouchdb-1.17.0.tar.gz | 135.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycouchdb-1.17.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 155.1 kB
Release files / pycouchdb-1.17.0.tar.gz
| Download URL | pycouchdb-1.17.0.tar.gz |
|---|---|
| Size | 135.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
556b70da430060958ff7b103ec754055edc7f83c2fdeeb20bfd9fc6b540269f6
|
|
BLAKE2b-256 checksum How to use checksums |
e86d9d87d31e3f3186ff3e6c7d299a1798991523151e8238f4c145a48b2630e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / pycouchdb-1.17.0-py3-none-any.whl
| Download URL | pycouchdb-1.17.0-py3-none-any.whl |
|---|---|
| Size | 19.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57c5e5eac498dc30fb972e350498448793f3e1ef3739751d8c951027c4bcbddc
|
|
BLAKE2b-256 checksum How to use checksums |
34e3a712f13ece4fc7d7e41139fa3f4a806dba9c9fc60a0166e32b1e4d92ff89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|