Library

Description of functions

async_couch.get_couch_client(https: bool = False, host: str = 'localhost', port: int = 5984, request_adapter: async_couch.http_clients.base_client.BaseHttpClient = <class 'async_couch.http_clients.httpx_client.HttpxCouchClient'>, **kwargs) → async_couch.CouchClient

Initialize CouchClient

Parameters:
  • https (bool = False) – Schema type. Use https if value is True
  • host (str = 'localhost') – CouchDB host
  • port (int = 5984) – CouchDB port
  • request_adapter (BaseHttpClient = HttpxCouchClient) – Http client adapter
Returns:

CouchDB API realisation

Return type:

CouchClient

from async_couch import get_couch_client

client = get_couch_client()