bayesline.apiclient.ApiClient#

class bayesline.apiclient.ApiClient(endpoint: str, *, auth_str: str | None = None, auth_type: str | None = None, base_path: str | None = None, client: Client | None = None, verify: bool = True, proxy: str | None = None, extra_params: dict[str, Any] | None = None, submit_exceptions: bool = True)#

Bases: BaseApiClient

Methods

__init__(endpoint, *[, auth_str, auth_type, ...])

append_base_path(base_path)

delete(url, *[, absolute_url, params])

get(url, *[, absolute_url, params])

head(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, ...)

with_base_path(base_path)

__init__(endpoint: str, *, auth_str: str | None = None, auth_type: str | None = None, base_path: str | None = None, client: Client | None = None, verify: bool = True, proxy: str | None = None, extra_params: dict[str, Any] | None = None, submit_exceptions: bool = True)#
with_base_path(base_path: str) ApiClient#
append_base_path(base_path: str) ApiClient#
get(url: str, *, absolute_url: bool = False, params: dict[str, Any] | None = None) Response#
options(url: str, *, absolute_url: bool = False, params: dict[str, Any] | None = None) Response#
head(url: str, *, absolute_url: bool = False, params: dict[str, Any] | None = None) Response#
delete(url: str, *, absolute_url: bool = False, params: dict[str, Any] | None = None) Response#
post(url: str, body: dict[str, Any] | BaseModel | bytes | TqdmContentStreamer | None, files: dict[str, Any] | None = None, data: Any | None = None, params: dict[str, Any] | None = None, absolute_url: bool = False) Response#
put(url: str, body: dict[str, Any] | BaseModel | bytes, data: Any | None = None, params: dict[str, Any] | None = None, absolute_url: bool = False) Response#
submit_exception(response_or_exception: Response | Exception | None, original_request_id: str) None#
raise_for_status(fn: Callable[[...], Response]) Callable[[...], Response]#