![]() |
Terarea
2
The automation project
|
Functions | |
int | _spaceship (a, b) |
bool | check_if_oauth_is_valid (str oauth_token) |
Union[int, float, bool, None, datetime, date, str] | detect_and_convert (str value) |
Variables | |
str | TYPE_UNKNOWN = "UNKNOWN LOGGING TYPE" |
str | TYPE_API = "API" |
str | TYPE_SERVICE = "SERVICE" |
str | TYPE_SERVICE_TRIGGER = "SERVICE TRIGGER" |
str | TYPE_SERVICE_ACTION = "SERVICE ACTION" |
str | TYPE_ACTION = "ACTION" |
str | TYPE_UNDEFINED = "UNDEFINED" |
str | TYPE_MISMATCH = "MISMATCH" |
str | TYPE_BEFORE_ASSIGNEMENT = "REFERENCED BEFORE ASSIGNEMENT" |
str | TYPE_DIV_ZERO = "DIVISION BY ZERO" |
str | TYPE_SYNTAX_ERROR = "SYNTAX ERROR" |
str | TYPE_RUNTIME_ERROR = "RUNTIME ERROR" |
str | TYPE_INCOMPARABLE = "INCOMPARABLE TYPES" |
str | TYPE_OVERFLOW = "VALUE OVERFLOW" |
str | TYPE_UNDERFLOW = "VALUE UNDERFLOW" |
int | CODE_UNKNOWN = -1 |
int | CODE_INFO = 0 |
int | CODE_SUCCESS = 1 |
int | CODE_DEBUG = 2 |
int | CODE_WARNING = 3 |
int | CODE_ERROR = 4 |
int | CODE_CRITICAL = 5 |
int | CODE_FATAL = 6 |
str | LEVEL_UNKNOWN = "UNKNOWN" |
str | LEVEL_INFO = "INFO" |
str | LEVEL_SUCCESS = "SUCCESS" |
str | LEVEL_DEBUG = "DEBUG" |
str | LEVEL_WARNING = "WARNING" |
str | LEVEL_ERROR = "ERROR" |
str | LEVEL_CRITICAL = "CRITICAL" |
str | LEVEL_FATAL = "FATAL" |
str | MSG_UNKNOWN = "Unknown: Operation executed with unknown status." |
str | MSG_INFO = "Information: Operation executed without any issues." |
str | MSG_SUCCESS = "Success: Operation completed successfully." |
str | MSG_DEBUG = "Debug: Tracking detailed operational data for diagnostics." |
str | MSG_WARNING = "Warning: Potential issue detected. Review is recommended." |
str | MSG_ERROR = "Error: Operation could not be completed successfully." |
str | MSG_CRITICAL = "Critical: Immediate attention required to prevent severe impact." |
str | MSG_FATAL = "Fatal: System failure imminent. Immediate intervention necessary." |
dict | LOG_EQUIVALENCE |
dict | LOG_MESSAGE_EQUIVALENCE |
list | LIST_TYPE |
list | LIST_CODE |
list | LIST_LEVEL_INFO |
list | LIST_MSG |
dict | OPERATOR_EXCHANGE |
dict | SECRETS_EQUIVALENCE |
str | CONTENT_TYPE_KEY = "type" |
str | CONTENT_KEY = "content" |
dict | CONTENT_TYPES_JSON = {"application/json", "application/ld+json"} |
dict | CONTENT_TYPES_TEXT |
dict | CONTENT_TYPES_XML = {"application/xml", "application/xhtml+xml", "text/xml"} |
dict | CONTENT_TYPES_BINARY |
dict | CONTENT_TYPES_AUDIO |
dict | CONTENT_TYPES_IMAGES |
dict | CONTENT_TYPES_VIDEO |
str | RESPONSE_NODE_BODY_KEY = "body" |
str | RESPONSE_NODE_BODY_TYPE_KEY = "body_type" |
str | RESPONSE_NODE_HEADERS_KEY = "headers" |
str | RESPONSE_NODE_HEADERS_TYPE_KEY = "headers_type" |
str | RESPONSE_NODE_ENCODING_KEY = "encoding" |
str | RESPONSE_NODE_HISTORY_KEY = "history" |
str | RESPONSE_NODE_COOKIES_KEY = "cookies" |
str | RESPONSE_NODE_ELAPSED_KEY = "elapsed" |
str | RESPONSE_NODE_REASON_KEY = "reason" |
str | RESPONSE_NODE_URL_KEY = "url" |
str | RESPONSE_NODE_METHOD_KEY = "method" |
str | RESPONSE_NODE_STATUS_CODE_KEY = "status_code" |
dict | RESPONSE_NODE_KEY_EQUIVALENCE |
list | BRUTEFORCE_DATETIME_FORMATS |
list | BRUTEFORCE_DATE_FORMATS |
_summary_ This file contains the constants for the actions program. These are used to standardise error logging and other sections of the program.
|
protected |
Compares two values and returns: -1 if a < b 0 if a == b 1 if a > b Args: a: The first value to compare. b: The second value to compare. Returns: int: -1, 0, or 1 based on the comparison.
Definition at line 142 of file constants.py.
bool src.lib.actions.constants.check_if_oauth_is_valid | ( | str | oauth_token | ) |
Definition at line 399 of file constants.py.
Union[int, float, bool, None, datetime, date, str] src.lib.actions.constants.detect_and_convert | ( | str | value | ) |
Detects the type of the input string and converts it to the appropriate Python type. Args: value (str): The string to be converted. Returns: int, float, bool, None, datetime, date, or str: The converted value based on its detected type.
Definition at line 426 of file constants.py.
list src.lib.actions.constants.BRUTEFORCE_DATE_FORMATS |
Definition at line 419 of file constants.py.
list src.lib.actions.constants.BRUTEFORCE_DATETIME_FORMATS |
Definition at line 412 of file constants.py.
int src.lib.actions.constants.CODE_CRITICAL = 5 |
Definition at line 37 of file constants.py.
int src.lib.actions.constants.CODE_DEBUG = 2 |
Definition at line 34 of file constants.py.
int src.lib.actions.constants.CODE_ERROR = 4 |
Definition at line 36 of file constants.py.
int src.lib.actions.constants.CODE_FATAL = 6 |
Definition at line 38 of file constants.py.
int src.lib.actions.constants.CODE_INFO = 0 |
Definition at line 32 of file constants.py.
int src.lib.actions.constants.CODE_SUCCESS = 1 |
Definition at line 33 of file constants.py.
int src.lib.actions.constants.CODE_UNKNOWN = -1 |
Definition at line 31 of file constants.py.
int src.lib.actions.constants.CODE_WARNING = 3 |
Definition at line 35 of file constants.py.
str src.lib.actions.constants.CONTENT_KEY = "content" |
Definition at line 228 of file constants.py.
str src.lib.actions.constants.CONTENT_TYPE_KEY = "type" |
Definition at line 227 of file constants.py.
dict src.lib.actions.constants.CONTENT_TYPES_AUDIO |
Definition at line 305 of file constants.py.
dict src.lib.actions.constants.CONTENT_TYPES_BINARY |
Definition at line 239 of file constants.py.
dict src.lib.actions.constants.CONTENT_TYPES_IMAGES |
Definition at line 318 of file constants.py.
dict src.lib.actions.constants.CONTENT_TYPES_JSON = {"application/json", "application/ld+json"} |
Definition at line 230 of file constants.py.
dict src.lib.actions.constants.CONTENT_TYPES_TEXT |
Definition at line 231 of file constants.py.
dict src.lib.actions.constants.CONTENT_TYPES_VIDEO |
Definition at line 330 of file constants.py.
dict src.lib.actions.constants.CONTENT_TYPES_XML = {"application/xml", "application/xhtml+xml", "text/xml"} |
Definition at line 238 of file constants.py.
str src.lib.actions.constants.LEVEL_CRITICAL = "CRITICAL" |
Definition at line 48 of file constants.py.
str src.lib.actions.constants.LEVEL_DEBUG = "DEBUG" |
Definition at line 45 of file constants.py.
str src.lib.actions.constants.LEVEL_ERROR = "ERROR" |
Definition at line 47 of file constants.py.
str src.lib.actions.constants.LEVEL_FATAL = "FATAL" |
Definition at line 49 of file constants.py.
str src.lib.actions.constants.LEVEL_INFO = "INFO" |
Definition at line 43 of file constants.py.
str src.lib.actions.constants.LEVEL_SUCCESS = "SUCCESS" |
Definition at line 44 of file constants.py.
str src.lib.actions.constants.LEVEL_UNKNOWN = "UNKNOWN" |
Definition at line 42 of file constants.py.
str src.lib.actions.constants.LEVEL_WARNING = "WARNING" |
Definition at line 46 of file constants.py.
list src.lib.actions.constants.LIST_CODE |
Definition at line 106 of file constants.py.
list src.lib.actions.constants.LIST_LEVEL_INFO |
Definition at line 117 of file constants.py.
list src.lib.actions.constants.LIST_MSG |
Definition at line 128 of file constants.py.
list src.lib.actions.constants.LIST_TYPE |
Definition at line 88 of file constants.py.
dict src.lib.actions.constants.LOG_EQUIVALENCE |
Definition at line 64 of file constants.py.
dict src.lib.actions.constants.LOG_MESSAGE_EQUIVALENCE |
Definition at line 75 of file constants.py.
str src.lib.actions.constants.MSG_CRITICAL = "Critical: Immediate attention required to prevent severe impact." |
Definition at line 59 of file constants.py.
str src.lib.actions.constants.MSG_DEBUG = "Debug: Tracking detailed operational data for diagnostics." |
Definition at line 56 of file constants.py.
str src.lib.actions.constants.MSG_ERROR = "Error: Operation could not be completed successfully." |
Definition at line 58 of file constants.py.
str src.lib.actions.constants.MSG_FATAL = "Fatal: System failure imminent. Immediate intervention necessary." |
Definition at line 60 of file constants.py.
str src.lib.actions.constants.MSG_INFO = "Information: Operation executed without any issues." |
Definition at line 54 of file constants.py.
str src.lib.actions.constants.MSG_SUCCESS = "Success: Operation completed successfully." |
Definition at line 55 of file constants.py.
str src.lib.actions.constants.MSG_UNKNOWN = "Unknown: Operation executed with unknown status." |
Definition at line 53 of file constants.py.
str src.lib.actions.constants.MSG_WARNING = "Warning: Potential issue detected. Review is recommended." |
Definition at line 57 of file constants.py.
dict src.lib.actions.constants.OPERATOR_EXCHANGE |
Definition at line 162 of file constants.py.
str src.lib.actions.constants.RESPONSE_NODE_BODY_KEY = "body" |
Definition at line 341 of file constants.py.
str src.lib.actions.constants.RESPONSE_NODE_BODY_TYPE_KEY = "body_type" |
Definition at line 342 of file constants.py.
str src.lib.actions.constants.RESPONSE_NODE_COOKIES_KEY = "cookies" |
Definition at line 347 of file constants.py.
str src.lib.actions.constants.RESPONSE_NODE_ELAPSED_KEY = "elapsed" |
Definition at line 348 of file constants.py.
str src.lib.actions.constants.RESPONSE_NODE_ENCODING_KEY = "encoding" |
Definition at line 345 of file constants.py.
str src.lib.actions.constants.RESPONSE_NODE_HEADERS_KEY = "headers" |
Definition at line 343 of file constants.py.
str src.lib.actions.constants.RESPONSE_NODE_HEADERS_TYPE_KEY = "headers_type" |
Definition at line 344 of file constants.py.
str src.lib.actions.constants.RESPONSE_NODE_HISTORY_KEY = "history" |
Definition at line 346 of file constants.py.
dict src.lib.actions.constants.RESPONSE_NODE_KEY_EQUIVALENCE |
Definition at line 354 of file constants.py.
str src.lib.actions.constants.RESPONSE_NODE_METHOD_KEY = "method" |
Definition at line 351 of file constants.py.
str src.lib.actions.constants.RESPONSE_NODE_REASON_KEY = "reason" |
Definition at line 349 of file constants.py.
str src.lib.actions.constants.RESPONSE_NODE_STATUS_CODE_KEY = "status_code" |
Definition at line 352 of file constants.py.
str src.lib.actions.constants.RESPONSE_NODE_URL_KEY = "url" |
Definition at line 350 of file constants.py.
dict src.lib.actions.constants.SECRETS_EQUIVALENCE |
Definition at line 194 of file constants.py.
str src.lib.actions.constants.TYPE_ACTION = "ACTION" |
Definition at line 18 of file constants.py.
str src.lib.actions.constants.TYPE_API = "API" |
Definition at line 14 of file constants.py.
str src.lib.actions.constants.TYPE_BEFORE_ASSIGNEMENT = "REFERENCED BEFORE ASSIGNEMENT" |
Definition at line 21 of file constants.py.
str src.lib.actions.constants.TYPE_DIV_ZERO = "DIVISION BY ZERO" |
Definition at line 22 of file constants.py.
str src.lib.actions.constants.TYPE_INCOMPARABLE = "INCOMPARABLE TYPES" |
Definition at line 25 of file constants.py.
str src.lib.actions.constants.TYPE_MISMATCH = "MISMATCH" |
Definition at line 20 of file constants.py.
str src.lib.actions.constants.TYPE_OVERFLOW = "VALUE OVERFLOW" |
Definition at line 26 of file constants.py.
str src.lib.actions.constants.TYPE_RUNTIME_ERROR = "RUNTIME ERROR" |
Definition at line 24 of file constants.py.
str src.lib.actions.constants.TYPE_SERVICE = "SERVICE" |
Definition at line 15 of file constants.py.
str src.lib.actions.constants.TYPE_SERVICE_ACTION = "SERVICE ACTION" |
Definition at line 17 of file constants.py.
str src.lib.actions.constants.TYPE_SERVICE_TRIGGER = "SERVICE TRIGGER" |
Definition at line 16 of file constants.py.
str src.lib.actions.constants.TYPE_SYNTAX_ERROR = "SYNTAX ERROR" |
Definition at line 23 of file constants.py.
str src.lib.actions.constants.TYPE_UNDEFINED = "UNDEFINED" |
Definition at line 19 of file constants.py.
str src.lib.actions.constants.TYPE_UNDERFLOW = "VALUE UNDERFLOW" |
Definition at line 27 of file constants.py.
str src.lib.actions.constants.TYPE_UNKNOWN = "UNKNOWN LOGGING TYPE" |
Definition at line 13 of file constants.py.