module config
Configuration management for Yaralyzer.
Global Variables
- YARALYZER_THEME_DICT
- EARLY_EXIT_ARGS
- ENV_VARS_OPTION
- KILOBYTE
- PNG_EXPORT_WARNING
- YARALYZE
- YARALYZER_UPPER
- DEFAULT_LOG_HANDLER_KWARGS
- LOG_FILE_LOG_FORMAT
- LOG_DIR_ENV_VAR
- LOG_LEVEL_ENV_VAR
- ARGPARSE_LOG_FORMAT
- DEFAULT_ARGV
class YaralyzerConfig
Handles parsing of command line args and environment variables for Yaralyzer.
classmethod env_var_for_option_dest
env_var_for_option_dest(option: str) → str
output_dir' becomes``YARALYZER_OUTPUT_DIR. Overriden in pdfalyzer to distinguish yaralyzer only options.
classmethod get_env_value
get_env_value(
var: str,
var_type: Callable[[str], ~T] = <class 'str'>
) → Optional[~T]
If called with 'output_dir' it will check env value of YARALYZER_OUTPUT_DIR.
classmethod init
init(argparser: ArgumentParser) → None
Should be called immediately upon package load to provide the Config with the means to set itself up.
Args:
argparser(ArgumentParser): An ArgumentParser that can parse the args this app needs.
classmethod parse_args
parse_args() → Namespace
classmethod prefixed_env_var
prefixed_env_var(var: str) → str
Turns 'LOG_DIR' into 'YARALYZER_LOG_DIR' etc.
This file was automatically generated via lazydocs.