A CouchDB library for python, focused on network resilience.
Project description
CouchBeans
Have you ever held up a broken couch with a tin of beans? CouchBeans is a CouchDB library for python, aiming to provide as much resilience as possible for dodgy network environments. It's designed to be quick and easy to use, with as much complexity hidden from the user as possible.
A quick example:
>>> from couchbeans import CouchClient
>>> db = CouchClient("http://root:couchbeans@localhost:6984/")
>>> db.get_document("main", "bb0065e5-d047-4bfc-b64a-855adeb89e35")
{"_id":"bb0065e5-d047-4bfc-b64a-855adeb89e35", "_rev": "1-90d3dbcd053542fda4bdd6754ecc917a", "msg": "hello world!"}
Have a look at the test script for more examples of how to use CouchBeans.
Installation
CouchBeans is installable via PIP:
pip install couchbeans
Features
The main advantage of CouchBeans over other CouchDB libraries is its default handling of failed requests. CouchBeans will try a user-configurable number of times to execute a request to help with spotty network connections.
CouchBeans provides utility functions for modifying documents, including a patch operation. It also hides handling of the _rev parameter, making it easy to forget about the underlying network connections.
Dependencies
- requests
Project details
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 couchbeans-0.0.1.tar.gz.
File metadata
- Download URL: couchbeans-0.0.1.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73e5f5e8c391899a277c2c35052858c81e2215c0312c17c3eebe0a553217dd59
|
|
| MD5 |
fccf8d8538f1eb4a26156d6981fbc48e
|
|
| BLAKE2b-256 |
d8da6100b185088a03a207f2a892079cb346180f28178409063218813ac3d136
|
File details
Details for the file couchbeans-0.0.1-py3-none-any.whl.
File metadata
- Download URL: couchbeans-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43ca49597dde2acfa2b29bd02fd709d7ef25dabdf31d72a48bf11564530da825
|
|
| MD5 |
73a0d193dd49f616b5412104585e4cb2
|
|
| BLAKE2b-256 |
820197ef0bec47abc2b4f1c572722fd2278595cfd725fce19d4eaab186abbf0f
|