whylogs.api.whylabs.session.session_types
#
Module Contents#
Classes#
Indicates that one of the session apis isn't supported for the current session type. |
|
Logger for interactive environments. |
|
Generic enumeration. |
|
Functions#
|
|
|
|
|
Parse the key id from an api key. |
|
Parse the key id and the org id from an api key |
Attributes#
- class whylogs.api.whylabs.session.session_types.NotSupported#
Indicates that one of the session apis isn’t supported for the current session type.
- whylogs.api.whylabs.session.session_types.LogFunction#
- class whylogs.api.whylabs.session.session_types.InteractiveLogger#
Logger for interactive environments.
- static message(message: str = '', log_fn: Optional[LogFunction] = None, ignore_suppress: bool = False) None #
Log a message only if we’re in a notebook environment.
- Parameters
- Return type
- static option(message: str, ignore_suppress: bool = False) None #
Log an option line, which is anything that has multiple related lines in a row like multiple choices or a list things.
- static inspect(message: str) None #
Log a message that the user is intended to interact with or inspect, like a url
- static success(message: str, ignore_suppress: bool = False) None #
Log a success line, which has a green checkmark.
- static failure(message: str, ignore_suppress: bool = False) None #
Log a failure, which has a red x.
- static warning(message: str, log_fn: Optional[LogFunction] = None, ignore_suppress: bool = False) None #
Log a warning, which has a warning sign.
- class whylogs.api.whylabs.session.session_types.SessionType#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- WHYLABS_ANONYMOUS = 'whylabs_anonymous'#
- WHYLABS = 'whylabs'#
- LOCAL = 'local'#
- name()#
The name of the Enum member.
- value()#
The value of the Enum member.
- class whylogs.api.whylabs.session.session_types.ApiKeyV2#
- whylogs.api.whylabs.session.session_types.ApiKey#
- whylogs.api.whylabs.session.session_types.parse_api_key(api_key: str) ApiKey #
- Parameters
api_key (str) –
- Return type
ApiKey