4.7. Library backend¶
- 4.7.1. API library backend
- 4.7.1.1. API models
- 4.7.1.2. Asset API models
AssetMixin
AssetMixin.ASSET_TYPE
AssetMixin.asset_types()
AssetMixin.asset_modules()
AssetMixin.run_enforcement()
AssetMixin.run_enforcement_from_items()
AssetMixin.run_enforcement_from_json()
AssetMixin.run_enforcement_from_jsonl()
AssetMixin.run_enforcement_from_csv()
AssetMixin.run_enforcement_from_text()
AssetMixin.run_enforcement_from_json_path()
AssetMixin.run_enforcement_from_jsonl_path()
AssetMixin.run_enforcement_from_csv_path()
AssetMixin.run_enforcement_from_text_path()
AssetMixin.enforcements
AssetMixin.count()
AssetMixin.count_by_saved_query()
AssetMixin.get()
AssetMixin.get_generator()
AssetMixin.get_by_saved_query()
AssetMixin.get_wiz_entries()
AssetMixin.get_sort_field()
AssetMixin.get_history_date()
AssetMixin.get_by_id()
AssetMixin.fields_default
AssetMixin.destroy()
AssetMixin.get_by_values()
AssetMixin.get_by_value_regex()
AssetMixin.get_by_value()
AssetMixin.history_dates_obj()
AssetMixin.history_dates()
AssetMixin._build_query()
AssetMixin.build_get_request()
AssetMixin.build_count_request()
AssetMixin.data_scopes
AssetMixin._init()
AssetMixin._get()
AssetMixin._count()
AssetMixin._get_by_id()
AssetMixin._destroy()
AssetMixin._history_dates()
AssetMixin._run_enforcement()
AssetMixin.FIELD_TAGS
AssetMixin.FIELD_AXON_ID
AssetMixin.FIELD_ADAPTERS
AssetMixin.FIELD_ADAPTER_LEN
AssetMixin.FIELD_LAST_SEEN
AssetMixin.FIELD_MAIN
AssetMixin.FIELD_SIMPLE
AssetMixin.LOG
AssetMixin.__init__()
AssetMixin.__repr__()
AssetMixin.__str__()
AssetMixin._init_auth()
AssetMixin.auth
AssetMixin.http
AssetMixin.FIELD_COMPLEX
AssetMixin.FIELD_COMPLEX_SUB
AssetMixin.FIELDS_API
AssetMixin.wizard
AssetMixin.wizard_text
AssetMixin.wizard_csv
- 4.7.1.3. Endpoint routers
- 4.7.1.4. Settings mixins
- 4.7.2. Authenticating
- 4.7.2.1. Authenticating
AuthApiKey
AuthApiKey.__init__()
AuthApiKey.login()
AuthApiKey.fields
AuthApiKey.logout()
AuthApiKey.CLIENT
AuthApiKey.LOG
AuthApiKey.LOGIN_RESPONSE
AuthApiKey.VALIDATE_RESPONSE
AuthApiKey.__repr__()
AuthApiKey.__str__()
AuthApiKey._get_api_keys()
AuthApiKey._get_current_user()
AuthApiKey.check_login()
AuthApiKey.get_api_keys()
AuthApiKey.get_current_user()
AuthApiKey.http
AuthApiKey.is_logged_in
AuthApiKey.url
AuthApiKey.validate()
- 4.7.2.2. Models
- 4.7.2.1. Authenticating
- 4.7.3. Constants
- 4.7.3.1. Adapters
- 4.7.3.2. API models
SETTING_UNCHANGED
FIELD_TRIM_LEN
FIELD_TRIM_STR
FIELD_JOINER
TABLE_FORMAT
TABLE_MAX_ROWS
MAX_PAGE_SIZE
PAGE_SIZE
PAGE_SLEEP
GUI_PAGE_SIZES
TIMEOUT_CONNECT
TIMEOUT_RESPONSE
DEFAULT_CALLBACKS_CLS
COUNT_POLLING_ATTEMPTS
COUNT_POLLING_SLEEP
AS_DATACLASS
FolderDefaults
FolderDefaults.all_objects
FolderDefaults.confirm
FolderDefaults.delete_subfolders
FolderDefaults.delete_objects
FolderDefaults.create
FolderDefaults.create_action
FolderDefaults.echo
FolderDefaults.echo_action
FolderDefaults.error_no_matches
FolderDefaults.error_no_objects
FolderDefaults.error_unmatched
FolderDefaults.full_objects
FolderDefaults.full_objects_search
FolderDefaults.ignore_case
FolderDefaults.include_details
FolderDefaults.include_objects
FolderDefaults.include_subfolders
FolderDefaults.copy_prefix
FolderDefaults.pattern_prefix
FolderDefaults.prompt
FolderDefaults.prompt_default
FolderDefaults.prompt_shell
FolderDefaults.query_type
FolderDefaults.recursive
FolderDefaults.refresh
FolderDefaults.refresh_action
FolderDefaults.sep
- 4.7.3.3. Fields
AGG_ADAPTER_NAME
AGG_ADAPTER_TITLE
AXID
ALL_NAME
AGG_EXPR_FIELD_TYPE
AGG_ADAPTER_ALTS
GET_SCHEMAS_KEYS
GET_SCHEMA_KEYS
FUZZY_SCHEMAS_KEYS
PRETTY_SCHEMA_TMPL
FIELDS_DETAILS
FIELDS_DETAILS_EXCLUDE
FIELDS_ENTITY_PASSTHRU
SCHEMAS_CUSTOM
Parsers
Parsers.to_csv_adapters
Parsers.to_csv_cnx_label
Parsers.to_csv_int
Parsers.to_csv_ip
Parsers.to_csv_str
Parsers.to_csv_subnet
Parsers.to_csv_tags
Parsers.to_csv_tags_expirable
Parsers.to_dt
Parsers.to_in_subnet
Parsers.to_int
Parsers.to_ip
Parsers.to_none
Parsers.to_raw_version
Parsers.to_str
Parsers.to_str_adapters
Parsers.to_str_cnx_label
Parsers.to_str_escaped_regex
Parsers.to_str_subnet
Parsers.to_str_tags
Parsers.to_str_tags_expirable
Parsers.to_str_sq
Parsers.to_str_data_scope
Types
Formats
OperatorNameMap
OperatorNameMaps
OperatorNameMaps.contains
OperatorNameMaps.count_equals
OperatorNameMaps.count_less_than
OperatorNameMaps.count_more_than
OperatorNameMaps.endswith
OperatorNameMaps.equals
OperatorNameMaps.equals_empty
OperatorNameMaps.exists
OperatorNameMaps.is_false
OperatorNameMaps.is_true
OperatorNameMaps.is_in
OperatorNameMaps.is_in_subnet
OperatorNameMaps.is_ipv4
OperatorNameMaps.is_ipv6
OperatorNameMaps.is_not_in_subnet
OperatorNameMaps.last_days
OperatorNameMaps.last_hours
OperatorNameMaps.less_than
OperatorNameMaps.more_than
OperatorNameMaps.next_days
OperatorNameMaps.next_hours
OperatorNameMaps.regex
OperatorNameMaps.startswith
OperatorNameMaps.earlier_than
OperatorNameMaps.later_than
OperatorNameMaps.__init__()
OperatorNameMaps._human_key()
OperatorNameMaps.get_fields()
OperatorNameMaps.replace()
OperatorNameMaps.to_dict()
Operator
ops_clean()
Operators
Operators.contains
Operators.count_equals
Operators.count_less_than
Operators.count_more_than
Operators.endswith
Operators.equals_str
Operators.equals_str_tag
Operators.equals_str_tag_expirable
Operators.equals_str_adapter
Operators.equals_str_cnx_label
Operators.equals_str_sq
Operators.equals_str_data_scope
Operators.equals_ip
Operators.equals_subnet
Operators.equals_int
Operators.exists
Operators.exists_array
Operators.exists_array_object
Operators.ip_in_subnet
Operators.ip_not_in_subnet
Operators.ipv4
Operators.ipv6
Operators.is_in_str
Operators.is_in_str_tag
Operators.is_in_str_tag_expirable
Operators.is_in_str_adapter
Operators.is_in_str_cnx_label
Operators.is_in_int
Operators.is_in_ip
Operators.is_in_subnet
Operators.is_false
Operators.is_true
Operators.last_hours
Operators.last_days
Operators.less_than_date
Operators.less_than_int
Operators.earlier_than_version
Operators.more_than_date
Operators.more_than_int
Operators.later_than_version
Operators.next_hours
Operators.next_days
Operators.regex
Operators.startswith
Operators.__init__()
Operators._human_key()
Operators.get_fields()
Operators.replace()
Operators.to_dict()
OperatorTypeMap
OperatorTypeMaps
OperatorTypeMaps.string_sq
OperatorTypeMaps.string_data_scope
OperatorTypeMaps.string_cnx_label
OperatorTypeMaps.string
OperatorTypeMaps.string_os_distribution
OperatorTypeMaps.string_tag_expirable
OperatorTypeMaps.string_tag
OperatorTypeMaps.string_ip
OperatorTypeMaps.string_datetime
OperatorTypeMaps.string_date
OperatorTypeMaps.string_image
OperatorTypeMaps.__init__()
OperatorTypeMaps._human_key()
OperatorTypeMaps.get_fields()
OperatorTypeMaps.replace()
OperatorTypeMaps.to_dict()
OperatorTypeMaps.string_version
OperatorTypeMaps.string_subnet
OperatorTypeMaps.boolean
OperatorTypeMaps.integer
OperatorTypeMaps.number
OperatorTypeMaps.array_object
OperatorTypeMaps.array_table_object
OperatorTypeMaps.array_integer
OperatorTypeMaps.array_number
OperatorTypeMaps.array_string
OperatorTypeMaps.array_string_tag
OperatorTypeMaps.array_string_version
OperatorTypeMaps.array_string_datetime
OperatorTypeMaps.array_string_subnet
OperatorTypeMaps.array_discrete_string_logo
OperatorTypeMaps.array_string_ip
OperatorTypeMaps.array_string_ip_preferred
OperatorTypeMaps.get_type_map()
OperatorTypeMaps.get_operator()
CUSTOM_FIELDS_MAP
- 4.7.3.4. General
- 4.7.3.5. Logs
LOG_FMT_VERBOSE
LOG_FMT_BRIEF_SRC
LOG_FMT_BRIEF
LOG_FMT_CONSOLE
LOG_FMT_FILE
LOG_DATEFMT_CONSOLE
LOG_DATEFMT_FILE
LOG_LEVEL_CONSOLE
LOG_LEVEL_FILE
LOG_LEVEL_HTTP
LOG_LEVEL_AUTH
LOG_LEVEL_API
LOG_LEVEL_WIZARD
LOG_LEVEL_PACKAGE
LOG_LEVELS_STR
LOG_LEVELS_STR_CSV
LOG_LEVELS_INT
LOG_LEVELS_INT_CSV
LOG_FILE_PATH
LOG_FILE_PATH_MODE
LOG_FILE_NAME
LOG_FILE_MAX_MB
LOG_FILE_MAX_FILES
LOG_NAME_STDERR
LOG_NAME_STDOUT
LOG_NAME_FILE
MAX_BODY_LEN
RESPONSE_ATTR_MAP
REQUEST_ATTR_MAP
RESPONSE_ATTRS
REQUEST_ATTRS
RESPONSE_ATTRS_DEFAULT
REQUEST_ATTRS_DEFAULT
- 4.7.3.6. System
- 4.7.3.7. Wizards
Templates
Results
Patterns
Flags
Entry
EntrySq
Types
Docs
Sources
Fields
Expr
Expr.BRACKET_LEFT
Expr.BRACKET_RIGHT
Expr.BRACKET_WEIGHT
Expr.CHILDREN
Expr.CONDITION
Expr.CONTEXT
Expr.EXPR
Expr.FIELD
Expr.FIELD_TYPE
Expr.FILTER
Expr.FILTER_ADAPTERS
Expr.IDX
Expr.NOT
Expr.OP_COMP
Expr.OP_LOGIC
Expr.VALUE
Expr.CONTEXT_OBJ
Expr.OP_AND
Expr.OP_OR
Expr.OP_IDX0
Expr.get_query()
Expr.get_subs_query()
Expr.build()
Expr.build_child()
- 4.7.4. Parsers
- 4.7.4.1. Adapter schemas
- 4.7.4.2. Configuration schemas
config_check()
config_check_file()
config_check_bool()
config_check_int()
config_check_array()
parse_unchanged()
config_check_str()
config_build()
config_unknown()
config_unchanged()
config_default()
config_required()
config_empty()
config_info()
is_uploaded_file()
parse_schema()
parse_schema_enum()
parse_section()
parse_settings()
- 4.7.4.3. Field schemas
- 4.7.4.4. System
- 4.7.4.5. Tables
- 4.7.4.6. URLs
- 4.7.4.7. Wizards
WizardParser
WizardParser.__init__()
WizardParser.apiobj
WizardParser.__call__()
WizardParser.value_to_csv_adapters()
WizardParser.value_to_csv_cnx_label()
WizardParser.value_to_csv_int()
WizardParser.value_to_csv_ip()
WizardParser.value_to_csv_str()
WizardParser.value_to_csv_subnet()
WizardParser.value_to_csv_tags()
WizardParser.value_to_csv_tags_expirable()
WizardParser.value_to_dt()
WizardParser.value_to_in_subnet()
WizardParser.value_to_int()
WizardParser.value_to_ip()
WizardParser.value_to_none()
WizardParser.value_to_raw_version()
WizardParser.value_to_str()
WizardParser.value_to_str_adapters()
WizardParser.value_to_str_sq()
WizardParser.value_to_str_data_scope()
WizardParser.value_to_str_cnx_label()
WizardParser.value_to_str_escaped_regex()
WizardParser.value_to_str_tags()
WizardParser.value_to_str_tags_expirable()
WizardParser.value_to_str_subnet()
WizardParser.parse_csv()
WizardParser.check_enum()
WizardParser.enum_cb_sq()
WizardParser.enum_cb_cnx_label()
WizardParser.enum_cb_asset_tags()
WizardParser.enum_cb_asset_tags_expirable()
WizardParser.enum_cb_adapter_name()
WizardParser.enum_cb_data_scope()
WizardParser.get_adapters()
WizardParser.get_cnx_labels()
WizardParser.get_instances()
WizardParser.get_sqs()
WizardParser.get_asset_tags()
WizardParser.get_asset_tags_expirable()
- 4.7.5. Tools
- 4.7.5.1. Data classes
- 4.7.5.2. Exceptions and warnings
get_exc_str()
AxonWarning
ApiWarning
GuiQueryWizardWarning
ExtraAttributeWarning
UnknownFieldSchema
AxonError
AxonTypeError
ApiError
ConfirmNotTrue
NotAllowedError
ToolsError
AuthError
NotFoundError
SavedQueryNotFoundError
SavedQueryTagsNotFoundError
AlreadyExists
NotLoggedIn
AlreadyLoggedIn
ConnectError
HttpError
ConfigError
ConfigInvalidValue
ConfigUnchanged
ConfigUnknown
ConfigRequired
CnxError
CnxGoneError
CnxUpdateError
CnxTestError
CnxAddError
ResponseError
InvalidCredentials
ResponseNotOk
JsonInvalidError
JsonError
WizardError
ApiAttributeExtraWarning
ApiAttributeError
ApiAttributeTypeError
ApiAttributeMissingError
NoTriggerDefinedError
StopFetch
SchemaError
RequestError
RequestMissingArgsError
RequestObjectTypeError
RequestFormatError
RequestFormatPathError
RequestFormatObjectError
RequestLoadObjectError
ResponseLoadObjectError
FeatureNotEnabledError
RunnerError
RunnerWarning
GrabberError
GrabberWarning
FolderAlreadyExistsError
FolderNotFoundError
SearchError
SearchUnmatchedError
SearchNoMatchesError
SearchNoObjectsError
DecodeError
InvalidObjectIdError
InvalidTypeError
FormatError
- 4.7.5.3. HTTP Client
is_headers()
is_cookies()
Http
Http.LOG_REQUEST_ATTRS
Http.LOG_RESPONSE_ATTRS
Http.URL_CERT
Http.URL_CERT_CHAIN
Http.CLIENT
Http.__init__()
Http.session
Http.LOG_LEVEL
Http.LOG
Http.HISTORY
Http.LAST_REQUEST
Http.LAST_RESPONSE
Http.LOG_BODY_LINES
Http.LOG_HIDE_HEADERS
Http.LOG_HIDE_STR
Http.LOG_LEVEL_URLLIB
Http.LOG_REQUEST_BODY
Http.LOG_RESPONSE_BODY
Http.URLPARSED
Http.url
Http.HTTP_HEADERS
Http.HTTP_COOKIES
Http.CERT_PATH
Http.CERT_WARN
Http.CERT_VERIFY
Http.CERT_CLIENT_BOTH
Http.CERT_CLIENT_CERT
Http.CERT_CLIENT_KEY
Http.CONNECT_TIMEOUT
Http.RESPONSE_TIMEOUT
Http.HTTP_PROXY
Http.HTTPS_PROXY
Http.SAVE_HISTORY
Http.SAVE_LAST
Http.MAX_RETRIES
Http.RETRY_BACKOFF
Http.set_cf_token()
Http.safe_request()
Http.get_cert()
Http.get_cert_chain()
Http.parse_url()
Http.new_session()
Http.set_session_headers()
Http.set_session_cookies()
Http.set_session_proxies()
Http.set_session_verify()
Http.set_session_cert()
Http.set_urllib_warnings()
Http.set_urllib_log()
Http.__call__()
Http.__str__()
Http.__repr__()
Http.user_agent
Http._do_log_request()
Http._clean_headers()
Http._do_log_response()
Http.log_request_attrs
Http.log_response_attrs
Http._get_log_attrs()
Http._set_log_attrs()
Http.log_body()
Http._init()
- 4.7.5.4. Logging utilities
HideFormatter
HideFormatter.HIDE_ENABLED
HideFormatter.HIDE_REGEX
HideFormatter.HIDE_REPLACE
HideFormatter.format()
HideFormatter.__init__()
HideFormatter.converter()
HideFormatter.default_msec_format
HideFormatter.default_time_format
HideFormatter.formatException()
HideFormatter.formatMessage()
HideFormatter.formatStack()
HideFormatter.formatTime()
HideFormatter.usesTime()
get_echoer()
get_log_method()
gmtime()
localtime()
get_obj_log()
set_log_level()
str_level()
add_stderr()
add_stdout()
add_file()
add_null()
add_handler()
del_stderr()
del_stdout()
del_file()
del_null()
del_handler()
find_handlers()
handle_unhandled_exception()
- 4.7.5.5. Setup environment variables
LOGGER
YES
NO
CF_PRE
KEY_DEFAULT_PATH
KEY_ENV_FILE
KEY_ENV_PATH
KEY_OVERRIDE
KEY_URL
KEY_KEY
KEY_SECRET
KEY_FEATURES
KEY_CERTWARN
KEY_CERTPATH
KEY_DEBUG
KEY_DEBUG_PRINT
KEY_USER_AGENT
DEFAULT_DEBUG
DEFAULT_DEBUG_PRINT
DEFAULT_OVERRIDE
DEFAULT_CERTWARN
DEFAULT_ENV_FILE
KEYS_HIDDEN
KEY_MATCHES
HIDDEN
is_empty_object()
is_empty_string()
is_empty()
Results
spew()
get_file_or_dir_with_file()
find_dotenv()
MSG
load_dotenv()
get_env_ax_env()
get_env_str()
get_env_bool()
get_env_extra_warn()
get_env_path()
get_env_csv()
get_env_user_agent()
load_schema()
get_env_connect()
get_env_features()
hide_value()
hide_values()
get_env_ax()
set_env()
bytes_to_str()
DEBUG_PRINT
DEBUG
DEFAULT_PATH
- 4.7.5.6. Utilities
type_str()
pathify()
is_existing_file()
listify()
grouper()
coerce_int()
coerce_int_float()
coerce_bool()
is_str()
is_email()
is_int()
join_url()
strip_right()
strip_left()
AxJSONEncoder
has_to_dict()
json_dump()
lens()
tlens()
json_load()
is_file_like()
csv_load()
jsonl_loader()
jsonl_load()
json_log()
json_reload()
text_load()
dt_parse_uuid()
dt_parse()
dt_parse_tmpl()
dt_now()
dt_now_file()
dt_sec_ago()
dt_days_ago()
dt_min_ago()
dt_days_left()
dt_within_min()
get_path()
path_read()
get_backup_filename()
get_backup_path()
check_path_is_not_dir()
path_create_parent_dir()
path_backup_file()
auto_suffix()
path_write()
longest_str()
split_str()
echo_debug()
echo_ok()
echo_warn()
echo_error()
echo()
sysinfo()
calc_percent()
trim_float()
join_kv()
get_type_str()
check_type()
check_empty()
get_raw_version()
coerce_str_to_csv()
parse_ip_address()
parse_ip_network()
kv_dump()
bom_strip()
read_stream()
check_gui_page_size()
calc_gb()
calc_perc_gb()
get_subcls()
prettify_obj()
token_parse()
combo_dicts()
is_url()
bytes_to_str()
strip_str()
coerce_str()
str_trim()
get_cls_path()
csv_writer()
parse_int_min_max()
safe_replace()
safe_format()
get_paths_format()
int_days_map()
lowish()
log_or_exc()
coerce_io()
is_json_dict()
extract_kvs_auto()
trype()
extract_kvs_json()
is_callable()
extract_kvs_csv()
tilde_re()
coerce_str_re()
human_size()
is_pattern()
is_tty()
check_tty()
check_tty_stdin()
get_secho_args()
confirm()
coerce_prompt_confirm()
check_confirm_prompt()
csv_able()
is_list()
style_switch()
add_source()
parse_value_copy()
parse_refresh()
get_diff_seconds()
score_prefix()
get_mm_field()
get_mm_description()
is_nested_schema()
get_nested_schema()
get_hint_type()
is_subclass()
get_query_id()
jdump()
is_subclass_safe()
trim_value_repr()
coerce_seconds()
coerce_delta()
coerce_date_delta()
- 4.7.6. Version metadata