whylogs.api.whylabs.session.config
#
Module Contents#
Classes#
Generic enumeration. |
|
Generic enumeration. |
|
Attributes#
- whylogs.api.whylabs.session.config.INIT_DOCS = 'https://docs.whylabs.ai/docs/whylabs-whylogs-init'#
- exception whylogs.api.whylabs.session.config.InitException#
Bases:
Exception
Common base class for all non-exit exceptions.
- class args#
- with_traceback()#
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- class whylogs.api.whylabs.session.config.EnvVariableName#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- WHYLABS_API_KEY = 'WHYLABS_API_KEY'#
- WHYLABS_SESSION_ID = 'WHYLABS_SESSION_ID'#
- WHYLABS_ORG_ID = 'WHYLABS_DEFAULT_ORG_ID'#
- WHYLABS_DEFAULT_DATASET_ID = 'WHYLABS_DEFAULT_DATASET_ID'#
- WHYLOGS_CONFIG_PATH = 'WHYLOGS_CONFIG_PATH'#
- WHYLABS_API_ENDPOINT = 'WHYLABS_API_ENDPOINT'#
- WHYLABS_REFERENCE_PROFILE_NAME = 'WHYLABS_REFERENCE_PROFILE_NAME'#
- WHYLABS_PRIVATE_API_ENDPOINT = 'WHYLABS_PRIVATE_API_ENDPOINT'#
- WHYLABS_PRIVATE_S3_ENDPOINT = 'WHYLABS_PRIVATE_S3_ENDPOINT'#
- HTTP_PROXY = 'HTTP_PROXY'#
- HTTPS_PROXY = 'HTTPS_PROXY'#
- name()#
The name of the Enum member.
- value()#
The value of the Enum member.
- class whylogs.api.whylabs.session.config.ConfigVariableName#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- API_KEY = 'api_key'#
- ORG_ID = 'org_id'#
- SESSION_ID = 'session_id'#
- WHYLABS_API_ENDPOINT = 'whylabs_api_endpoint'#
- USER_GUID = 'user_guid'#
- DEFAULT_DATASET_ID = 'default_dataset_id'#
- WHYLABS_REFERENCE_PROFILE_NAME = 'whylabs_reference_profile_name'#
- WHYLABS_PRIVATE_API_ENDPOINT = 'whylabs_private_api_endpoint'#
- WHYLABS_PRIVATE_S3_ENDPOINT = 'whylabs_private_s3_endpoint'#
- HTTP_PROXY = 'http_proxy'#
- HTTPS_PROXY = 'https_proxy'#
- name()#
The name of the Enum member.
- value()#
The value of the Enum member.
- class whylogs.api.whylabs.session.config.InitConfig#
- class whylogs.api.whylabs.session.config.SessionConfig(init_config: Optional[InitConfig] = None)#
- Parameters
init_config (Optional[InitConfig]) –
- get_session_type() whylogs.api.whylabs.session.session_types.SessionType #
- get_config_file_path() pathlib.Path #
- Return type
- class whylogs.api.whylabs.session.config.ConfigFile#
- static create_parser(config_path: pathlib.Path) configparser.ConfigParser #
- Parameters
config_path (pathlib.Path) –
- Return type
- static get_variable_from_input(variable_name: ConfigVariableName) str #
- Parameters
variable_name (ConfigVariableName) –
- Return type
- static get_variable_from_getpass(variable_name: ConfigVariableName) str #
- Parameters
variable_name (ConfigVariableName) –
- Return type
- static get_variable_from_config_file(parser: configparser.ConfigParser, key: ConfigVariableName) Optional[str] #
- Parameters
parser (configparser.ConfigParser) –
key (ConfigVariableName) –
- Return type
Optional[str]
- static set_variable_to_config_file(parser: configparser.ConfigParser, auth_path: pathlib.Path, key: ConfigVariableName, value: str) None #
- Parameters
parser (configparser.ConfigParser) –
auth_path (pathlib.Path) –
key (ConfigVariableName) –
value (str) –
- Return type
- static remove_variable_from_config_file(parser: configparser.ConfigParser, auth_path: pathlib.Path, key: ConfigVariableName) None #
- Parameters
parser (configparser.ConfigParser) –
auth_path (pathlib.Path) –
key (ConfigVariableName) –
- Return type
- static remove_all_variables_from_config_file(parser: configparser.ConfigParser, auth_path: pathlib.Path) None #
- Parameters
parser (configparser.ConfigParser) –
auth_path (pathlib.Path) –
- Return type