Module Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Assign NameStore Call NameLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad TryExcept body Assign NameStore Dict NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If UnaryOpNot BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Return Assign NameStore Dict Str Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call NameLoad AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Return Expr Call NameLoad AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If UnaryOpNot BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Return Assign NameStore Dict Str Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call NameLoad AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Return Expr Call NameLoad AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Return Expr Call AttributeLoad NameLoad attr ListLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Return If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Return TryExcept body Assign NameStore SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign NameStore Dict AttributeLoad NameLoad attr Dict Str Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Return decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A argparse N/A logging N/A os N/A tempfile engine Engine entropy utils N/A LOG N/A N/A logging getLogger __name__ N/A engine_cfg N/A N/A N/A os path join N/A N/A tempfile gettempdir engines.cfg _get_backend_from_engine N/A N/A engine N/A N/A N/A N/A N/A engine_config N/A N/A dict N/A N/A utils load_yaml engine_cfg N/A engine N/A this_engine_cfg_file N/A engine_config N/A cfg N/A this_engine_cfg N/A dict N/A N/A utils load_yaml this_engine_cfg_file N/A N/A N/A Engine get_backend N/A N/A this_engine_cfg N/A engine N/A backend N/A this_engine_cfg N/A engine N/A N/A N/A KeyError N/A N/A N/A N/A LOG exception Could not find engine's cfg script N/A _add_to_list N/A N/A engine script_type script_name N/A script_args N/A N/A backend N/A _get_backend_from_engine engine N/A N/A N/A backend check_script_exists script_type script_name N/A N/A N/A N/A LOG error %s already exists, not registering script_type N/A False N/A N/A N/A data N/A script_name script_args N/A N/A N/A backend add_script script_type data N/A True N/A N/A N/A KeyError N/A N/A N/A N/A LOG exception No %s script called %s script_type script_name N/A N/A Exception N/A N/A N/A N/A LOG exception Could not register %s script %s script_type script_name N/A False N/A _remove_from_list N/A N/A engine script_type script_name N/A N/A N/A backend N/A _get_backend_from_engine engine N/A N/A N/A N/A N/A backend remove_script script_type script_name N/A N/A N/A Exception N/A N/A N/A N/A LOG exception Could not remove %s script %s script_type script_name N/A register_audit N/A N/A args N/A N/A N/A N/A N/A LOG info Registering audit script %s N/A args name N/A N/A N/A N/A args conf N/A args name N/A args engine N/A N/A N/A N/A LOG error Need path to script, json and engine name N/A N/A audit_cfg_args N/A cfg N/A N/A N/A os path join N/A N/A os getcwd N/A args conf N/A N/A _add_to_list N/A args engine audit N/A args name audit_cfg_args N/A N/A N/A N/A LOG info Registered audit %s N/A args name N/A unregister_audit N/A N/A args N/A N/A N/A N/A N/A LOG info Unregistering audit script %s N/A args name N/A N/A N/A N/A args name N/A args engine N/A N/A N/A N/A LOG error Need a audit name and engine to unregister N/A N/A N/A _remove_from_list N/A args engine audit N/A args name N/A register_repair N/A N/A args N/A N/A N/A N/A N/A LOG info Registering repair script %s N/A args name N/A N/A N/A N/A args conf N/A args name N/A args engine N/A N/A N/A N/A LOG error Need path to script, json and engine name N/A N/A repair_cfg_args N/A cfg N/A N/A N/A os path join N/A N/A os getcwd N/A args conf N/A N/A _add_to_list N/A args engine repair N/A args name repair_cfg_args N/A N/A N/A N/A LOG info Registered repair script %s N/A args name N/A unregister_repair N/A N/A args N/A N/A N/A N/A N/A LOG info Unregistering repair script %s N/A args name N/A N/A N/A N/A args name N/A args engine N/A N/A N/A N/A LOG error Need a repair name and engine to unregister N/A N/A N/A _remove_from_list N/A args engine repair N/A args name N/A start_engine N/A N/A args N/A N/A N/A N/A N/A N/A args name N/A args engine_cfg N/A N/A N/A N/A LOG error Need name and engine cfg N/A N/A N/A N/A utils create_files N/A engine_cfg N/A N/A args purge N/A N/A N/A N/A utils purge_disabled engine_cfg N/A N/A N/A utils check_exists_and_enabled N/A args name engine_cfg N/A N/A N/A N/A LOG error An engine of the same name %s is already registered and running N/A args name N/A N/A N/A N/A utils check_exists_and_disabled N/A args name engine_cfg N/A N/A N/A N/A LOG error And engine of the same name %s is already registered, but disabled. Run with purge? N/A args name N/A N/A N/A N/A cfg_data N/A N/A dict N/A N/A utils load_yaml N/A args engine_cfg N/A N/A args name N/A cfg N/A N/A args name N/A cfg pid backend enabled N/A N/A N/A os path join N/A N/A os getcwd N/A args engine_cfg N/A N/A os getpid N/A cfg_data N/A backend True N/A N/A N/A utils write_yaml cfg engine_cfg N/A N/A N/A LOG info Added %s to engine cfg N/A args name N/A entropy_engine N/A Engine N/A args name cfg_data N/A N/A N/A entropy_engine run N/A N/A N/A Exception N/A N/A N/A N/A LOG exception Could not start engine %s N/A args name N/A N/A stop_engine N/A N/A args N/A N/A N/A N/A N/A LOG info Stopping engine %s N/A args name N/A N/A N/A utils disable_engine N/A args name engine_cfg N/A parse N/A N/A N/A N/A N/A parser N/A N/A argparse ArgumentParser description entropy N/A subparsers N/A N/A parser add_subparsers dest command help commands N/A register_audit_parser N/A N/A subparsers add_parser register-audit help Register a repair script N/A N/A N/A register_audit_parser add_argument -n dest name action store help Name of auditor N/A N/A N/A register_audit_parser add_argument -f dest script action store help Audit script N/A N/A N/A register_audit_parser add_argument -c dest conf action store help Audit conf N/A N/A N/A register_audit_parser add_argument -e dest engine action store help Engine N/A N/A N/A register_audit_parser set_defaults func register_audit N/A unregister_audit_parser N/A N/A subparsers add_parser unregister-audit help Unregister a repair script N/A N/A N/A unregister_audit_parser add_argument -n dest name action store help Repair script name N/A N/A N/A unregister_audit_parser add_argument -e dest engine action store help Engine N/A N/A N/A unregister_audit_parser set_defaults func unregister_audit N/A register_repair_parser N/A N/A subparsers add_parser register-repair help Register a repair script N/A N/A N/A register_repair_parser add_argument -n dest name action store help Repair script name N/A N/A N/A register_repair_parser add_argument -c dest conf action store help Repair conf N/A N/A N/A register_repair_parser add_argument -e dest engine action store help Engine N/A N/A N/A register_repair_parser set_defaults func register_repair N/A unregister_repair_parser N/A N/A subparsers add_parser unregister-repair help Unregister a repair script N/A N/A N/A unregister_repair_parser add_argument -n dest name action store help Repair script name N/A N/A N/A unregister_repair_parser add_argument -e dest engine action store help Engine N/A N/A N/A unregister_repair_parser set_defaults func unregister_repair N/A start_engine_parser N/A N/A subparsers add_parser start-engine help Start an entropy engine N/A N/A N/A start_engine_parser add_argument -n dest name help Name N/A N/A N/A start_engine_parser add_argument -c dest engine_cfg help path to engine cfg N/A N/A N/A start_engine_parser add_argument -p dest purge action store_true help Purge disabled engines N/A N/A N/A start_engine_parser set_defaults func start_engine N/A stop_engine_parser N/A N/A subparsers add_parser stop-engine help Stop an entropy engine N/A N/A N/A stop_engine_parser add_argument -n dest name help Name of engine to stop N/A N/A N/A stop_engine_parser set_defaults func stop_engine N/A args N/A N/A parser parse_args N/A N/A N/A args func args N/A main N/A N/A N/A N/A N/A console_format %(filename)s %(lineno)s %(message)s N/A N/A N/A logging basicConfig format console_format level N/A logging INFO N/A N/A parse N/A N/A N/A __name__ __main__ N/A N/A N/A main