whylogs.api.whylabs.session.whylabs_client_cache#

Module Contents#

Classes#

KeyRefresher

Helper class that provides a standard way to create an ABC using

StaticKeyRefresher

Helper class that provides a standard way to create an ABC using

EnvironmentKeyRefresher

This key refresher uses environment variable key. The key is automatically picked up if the

ClientCacheConfig

WhylabsClientCache

class whylogs.api.whylabs.session.whylabs_client_cache.KeyRefresher#

Bases: abc.ABC

Helper class that provides a standard way to create an ABC using inheritance.

abstract property key_id: str#
Return type

str

class whylogs.api.whylabs.session.whylabs_client_cache.StaticKeyRefresher(api_key: str)#

Bases: KeyRefresher

Helper class that provides a standard way to create an ABC using inheritance.

Parameters

api_key (str) –

property key_id: str#
Return type

str

class whylogs.api.whylabs.session.whylabs_client_cache.EnvironmentKeyRefresher#

Bases: KeyRefresher

This key refresher uses environment variable key. The key is automatically picked up if the user changes the environment variable.

property key_id: str#
Return type

str

class whylogs.api.whylabs.session.whylabs_client_cache.ClientCacheConfig#
api_key: Optional[str]#
ssl_ca_cert: Optional[str]#
whylabs_api_endpoint: Optional[str]#
endpoint_hostname: Optional[str]#
class whylogs.api.whylabs.session.whylabs_client_cache.WhylabsClientCache#
static reset() None#
Return type

None

static instance() WhylabsClientCache#
Return type

WhylabsClientCache

get_client(config: ClientCacheConfig) Tuple[whylabs_client.ApiClient, KeyRefresher]#
Parameters

config (ClientCacheConfig) –

Return type

Tuple[whylabs_client.ApiClient, KeyRefresher]