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.DEBUG_ARGS: dict = {'bold': False, 'err': True, 'fg': 'blue'}

default arguments for echo_debug

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

default template for echo_debug

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.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