Async-Couch
Resources
This is simple asynchronous python CouchDB client that works with aiohttp, httpx and able to be adopted easily to any other http client.
Requirements:
-
= Python 3.11
Allowed http client
How to install
pip install async-couch
Get Started
import asyncio
from async_couch import get_couch_client
from async_couch.http_clients import HttpxCouchClient
async def example(client, doc_id: str):
await client.db_create('test_index')
await client.doc_create_or_update('test_index', doc_id, dict(val=1))
response = await client.doc_get('test_index', response.model._id)
assert response.model._id == doc_id
await client.attachment_upload(
'test_index', response.model._id, 'attachment_name', 'text/plain', b'\0')
if __name__ == '__main__':
loop = asyncio.get_event_loop()
client = get_couch_client(request_adapter=HttpxCouchClient)
loop.run_until_complete(example(client, 'document_name'))
ToDo
- Rest endpoints
- Aiohttp adapter
Metadata
Release files for async-couch 0.2.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 | Provenance | Actions |
|---|---|---|---|---|
| async_couch-0.2.0.tar.gz | 17.2 kB | Without provenance | Details for async_couch-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| async_couch-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for async_couch-0.2.0-py3-none-any.whl |
Total release size: 40.5 kB
Release files / async_couch-0.2.0.tar.gz
| Download URL | async_couch-0.2.0.tar.gz |
|---|---|
| Size | 17.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c84f8e443102cc36e85b671fe73ab1da61cdc6ff8c1cd71b207afcfa92eea96b
|
|
BLAKE2b-256 checksum How to use checksums |
a99a62953a7da4896160751a31b8872fa436e109f140f6ea0edc013f5632f919
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Linux/6.9.9-1-MANJARO
|
Release files / async_couch-0.2.0-py3-none-any.whl
| Download URL | async_couch-0.2.0-py3-none-any.whl |
|---|---|
| Size | 23.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
828951e9722482513ece2b3a743d88985239f4f8a3cd9a5597180cd09f0e28d6
|
|
BLAKE2b-256 checksum How to use checksums |
802a3fbea174bfcf017cfb87cd3f233769dd460cbbf3a1d643d95162d2a630c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Linux/6.9.9-1-MANJARO
|
Security for async-couch 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.