bayesline.apiclient.AsyncApiClient#
- class bayesline.apiclient.AsyncApiClient(endpoint: str, *, auth_str: str | None = None, auth_type: str | None = None, base_path: str | None = None, client: AsyncClient | Client | None = None, verify: bool = True, proxy: str | None = None, extra_params: dict[str, Any] | None = None, submit_exceptions: bool = False)#
Bases:
BaseApiClient
Methods
__init__
(endpoint, *[, auth_str, auth_type, ...])append_base_path
(base_path)delete
(url, *[, absolute_url, params])get
(url, *[, absolute_url, params])make_url
(url[, endpoint, base_path, params])options
(url, *[, absolute_url, params])post
(url, body[, files, data, params, ...])put
(url, body[, data, params, absolute_url])raise_for_status
(fn)submit_exception
(response_or_exception, ...)sync
()with_base_path
(base_path)- __init__(endpoint: str, *, auth_str: str | None = None, auth_type: str | None = None, base_path: str | None = None, client: AsyncClient | Client | None = None, verify: bool = True, proxy: str | None = None, extra_params: dict[str, Any] | None = None, submit_exceptions: bool = False)#
- with_base_path(base_path: str) AsyncApiClient #
- append_base_path(base_path: str) AsyncApiClient #
- async options(url: str, *, absolute_url: bool = False, params: dict[str, Any] | None = None) Response #
- async delete(url: str, *, absolute_url: bool = False, params: dict[str, Any] | None = None) Response #
- async post(url: str, body: dict[str, Any] | BaseModel | str | bytes | TqdmContentStreamer | None, files: dict[str, Any] | None = None, data: Any | None = None, params: dict[str, Any] | None = None, absolute_url: bool = False) Response #
- async put(url: str, body: dict[str, Any] | BaseModel | bytes | None, data: Any | None = None, params: dict[str, Any] | None = None, absolute_url: bool = False) Response #