{"id":29736567,"url":"https://github.com/symstu/async-couch","last_synced_at":"2025-07-25T15:02:13.462Z","repository":{"id":38962289,"uuid":"256031996","full_name":"symstu/async-couch","owner":"symstu","description":"Asynchronous client for CouchDb for Python. Currently implemented base operations with indexes and documents","archived":false,"fork":false,"pushed_at":"2024-08-05T00:17:02.000Z","size":273,"stargazers_count":2,"open_issues_count":4,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-18T07:44:26.137Z","etag":null,"topics":["aiohttp","asyncio","couchdb","erlang","erlang-libraries","httpx","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/symstu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-15T20:42:22.000Z","updated_at":"2024-08-05T00:17:06.000Z","dependencies_parsed_at":"2022-09-19T15:10:16.336Z","dependency_job_id":null,"html_url":"https://github.com/symstu/async-couch","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/symstu/async-couch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symstu%2Fasync-couch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symstu%2Fasync-couch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symstu%2Fasync-couch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symstu%2Fasync-couch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/symstu","download_url":"https://codeload.github.com/symstu/async-couch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symstu%2Fasync-couch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266878874,"owners_count":23999625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aiohttp","asyncio","couchdb","erlang","erlang-libraries","httpx","python"],"created_at":"2025-07-25T15:01:15.537Z","updated_at":"2025-07-25T15:02:13.365Z","avatar_url":"https://github.com/symstu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Async-Couch\n\n![Logo](docs/source/_static/logo.jpg)\n![Documentation Status](https://readthedocs.org/projects/async-couch/badge/?version=latest)\n![Python package](https://github.com/symstu/async-couch/workflows/testing/badge.svg?branch=master)\n![PyPI version](https://badge.fury.io/py/async-couch.svg)\n\n## Resources\n   * [Documentation](https://async-couch.readthedocs.io/en/latest/)\n\n\u003e This is simple asynchronous python CouchDB client that works with\n\u003e aiohttp, httpx and able to be adopted easily to any other http client.\n\n### Requirements:\n   * \u003e= Python 3.11\n\n### Allowed http client\n   * [aiohttp](https://docs.aiohttp.org/en/stable/\u003e)\n   * [httpx](https://www.python-httpx.org/\u003e)\n\n### How to install\n```bash\npip install async-couch\n```\n\n### Get Started\n```python\n   import asyncio\n\n   from async_couch import get_couch_client\n   from async_couch.http_clients import HttpxCouchClient\n\n\n   async def example(client, doc_id: str):\n      await client.db_create('test_index')\n      await client.doc_create_or_update('test_index', doc_id, dict(val=1))\n\n      response = await client.doc_get('test_index', response.model._id)\n      assert response.model._id == doc_id\n\n      await client.attachment_upload(\n         'test_index', response.model._id, 'attachment_name', 'text/plain', b'\\0')\n\n   if __name__ == '__main__':\n      loop = asyncio.get_event_loop()\n      client = get_couch_client(request_adapter=HttpxCouchClient)\n\n      loop.run_until_complete(example(client, 'document_name'))\n```\n\n### ToDo\n* Rest endpoints\n* Aiohttp adapter\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymstu%2Fasync-couch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsymstu%2Fasync-couch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymstu%2Fasync-couch/lists"}