commons.http.client package

Submodules

commons.http.client.base_client module

class commons.http.client.base_client.BaseHTTPClientBuilder[source]

Bases: object

apikey(apikey)[source]
backoff_factor(backoff_factor)[source]
base_url(base_url)[source]
build_headers(headers)[source]
build_http_client()[source]

Build and configure an HTTP client.

Returns:

An instance of the configured HTTP client.

Return type:

requests.Session

connect_timeout(timeout)[source]
enable_ssl(enable_ssl)[source]
get_default_user_agent_suffix()[source]
get_http_client()[source]
get_user_agent()[source]
keystore_pass(keystore_pass)[source]
keystore_path(keystore_path)[source]
max_retries(max_retries)[source]
read_timeout(timeout)[source]
ssl_verify_hostname(verify_hostname)[source]
truststore_pass(truststore_pass)[source]
truststore_path(truststore_path)[source]
user_agent(user_agent)[source]

commons.http.client.dataos_consumer module

class commons.http.client.dataos_consumer.DataOSBaseConsumer(base_url, apikey, client=None)[source]

Bases: Consumer

commons.http.client.hadler module

exception commons.http.client.hadler.ApiException[source]

Bases: Exception

Base exception class for API-related errors.

exception commons.http.client.hadler.ForbiddenException[source]

Bases: ApiException

Exception raised for 403 Forbidden.

exception commons.http.client.hadler.InvalidRequestException[source]

Bases: ApiException

Exception raised for 400 Bad Request.

exception commons.http.client.hadler.NotFoundException[source]

Bases: ApiException

Exception raised for 404 Not Found.

exception commons.http.client.hadler.UnauthorizedException[source]

Bases: ApiException

Exception raised for 401 Unauthorized.

Module contents