4.7.3.4. General

Constants for general use.

axonius_api_client.constants.general.OK_ARGS: dict = {'bold': True, 'err': True, 'fg': 'green'}

default arguments for echo_ok

axonius_api_client.constants.general.OK_TMPL: str = '** {msg}'

default template for echo_ok

axonius_api_client.constants.general.WARN_ARGS: dict = {'bold': True, 'err': True, 'fg': 'yellow'}

default arguments for echo_warn

axonius_api_client.constants.general.WARN_TMPL: str = '** WARNING: {msg}'

default template for echo_warn

axonius_api_client.constants.general.ERROR_ARGS: dict = {'bold': True, 'err': True, 'fg': 'red'}

default arguments for echo_error

axonius_api_client.constants.general.ERROR_TMPL: str = '** ERROR: {msg}'

default template for echo_error

axonius_api_client.constants.general.PY36: bool = True

python version is 3.6 or higher

axonius_api_client.constants.general.PY37: bool = True

python version is 3.7 or higher

axonius_api_client.constants.general.COMPLEX: Tuple[Type] = (<class 'dict'>, <class 'list'>, <class 'tuple'>)

types that are considered as complex.

axonius_api_client.constants.general.SIMPLE: Tuple[Type] = (<class 'str'>, <class 'int'>, <class 'bool'>, <class 'float'>)

types that are considered as simple

axonius_api_client.constants.general.EMPTY: List[Union[str, list, dict, tuple]] = [None, '', [], {}, ()]

Values that should be considered as empty

axonius_api_client.constants.general.YES: List[Union[bool, int, str]] = [True, 1, '1', 'true', 't', 'yes', 'y', 'on']

Values that should be considered as truthy

axonius_api_client.constants.general.NO: List[Union[bool, int, str]] = [False, 0, '0', 'false', 'f', 'no', 'n', 'off']

Values that should be considered as falsey

axonius_api_client.constants.general.IS_WINDOWS: bool = False

Running on a windows platform

axonius_api_client.constants.general.IS_LINUX: bool = True

Running on a linux platform

axonius_api_client.constants.general.IS_MAC: bool = False

Running on a mac platform