Module Import alias Import alias Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad Dict Assign AttributeStore NameLoad attr BoolOpOr NameLoad ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass orelse Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore IfExp BoolOpAnd NameLoad CompareGt Call NameLoad NameLoad Num SubscriptLoad NameLoad Index Num NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore IfExp NameLoad Call AttributeLoad NameLoad attr NameLoad Dict Assign NameStore IfExp AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Assert Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr
N/A N/A sys N/A json N/A argparse st2common log logging st2actions config st2actions.runners.pythonrunner Action st2actions.runners.utils get_logger_for_python_runner_action st2actions.runners.utils get_action_class_instance st2common.util loader action_loader st2common.util.config_parser ContentPackConfigParser st2common.constants.action ACTION_OUTPUT_RESULT_DELIMITER st2common.service_setup db_setup st2common.services.datastore DatastoreService N/A __all__ N/A PythonActionWrapper ActionService N/A LOG N/A N/A logging getLogger __name__ ActionService N/A object N/A N/A 
    Instance of this class is passed to the action instance and exposes "public"
    methods which can be called by the action.
     __init__ N/A N/A self action_wrapper N/A N/A N/A logger N/A get_logger_for_python_runner_action action_name N/A action_wrapper _class_name N/A N/A self _action_wrapper action_wrapper N/A N/A self _datastore_service N/A DatastoreService logger logger pack_name N/A N/A self _action_wrapper _pack class_name N/A N/A self _action_wrapper _class_name api_username action_service N/A list_values N/A N/A self local prefix N/A True None N/A N/A N/A N/A N/A self _datastore_service list_values local prefix N/A get_value N/A N/A self name local N/A True N/A N/A N/A N/A N/A self _datastore_service get_value name local N/A set_value N/A N/A self name value ttl local N/A None True N/A N/A N/A N/A N/A self _datastore_service set_value name value ttl local N/A delete_value N/A N/A self name local N/A True N/A N/A N/A N/A N/A self _datastore_service delete_value name local N/A N/A PythonActionWrapper N/A object N/A __init__ N/A N/A self pack file_path parameters parent_args N/A None None N/A N/A 
        :param pack: Name of the pack this action belongs to.
        :type pack: ``str``

        :param file_path: Path to the action module.
        :type file_path: ``str``

        :param parameters: action parameters.
        :type parameters: ``dict`` or ``None``

        :param parent_args: Command line arguments passed to the parent process.
        :type parse_args: ``list``
         N/A N/A self _pack pack N/A N/A self _file_path file_path N/A N/A self _parameters N/A parameters N/A N/A N/A self _parent_args N/A parent_args N/A N/A N/A self _class_name None N/A N/A self _logger N/A N/A logging getLogger PythonActionWrapper N/A N/A N/A N/A N/A config parse_args args N/A self _parent_args N/A N/A N/A Exception N/A N/A N/A N/A N/A db_setup N/A run N/A N/A self N/A N/A N/A action N/A N/A self _get_action_instance N/A output N/A N/A action run N/A self _parameters N/A N/A N/A N/A sys stdout write ACTION_OUTPUT_RESULT_DELIMITER N/A print_output None N/A N/A N/A print_output N/A N/A json dumps output N/A N/A N/A N/A print_output N/A str output N/A N/A N/A N/A sys stdout write N/A print_output N/A N/A N/A N/A sys stdout write ACTION_OUTPUT_RESULT_DELIMITER N/A _get_action_instance N/A N/A self N/A N/A N/A actions_cls N/A N/A action_loader register_plugin Action N/A self _file_path N/A action_cls N/A N/A actions_cls N/A N/A len actions_cls 0 N/A actions_cls N/A 0 None N/A N/A action_cls N/A N/A N/A Exception N/A File "%s" has no action or the file doesn't exist. N/A self _file_path N/A config_parser N/A ContentPackConfigParser pack_name N/A self _pack N/A config N/A N/A config_parser get_action_config action_file_path N/A self _file_path N/A config N/A N/A N/A N/A LOG info N/A Using config "%s" for action "%s" N/A N/A config file_path N/A self _file_path N/A config N/A config config N/A N/A N/A N/A LOG info N/A No config found for action "%s" N/A self _file_path N/A config None N/A action_service N/A ActionService action_wrapper self N/A action_instance N/A get_action_class_instance action_cls action_cls config config action_service action_service N/A action_instance N/A N/A N/A N/A __name__ __main__ N/A N/A parser N/A N/A argparse ArgumentParser description Python action runner process wrapper N/A N/A N/A parser add_argument --pack required True help Name of the pack this action belongs to N/A N/A N/A parser add_argument --file-path required True help Path to the action module N/A N/A N/A parser add_argument --parameters required False help Serialized action parameters N/A N/A N/A parser add_argument --parent-args required False help Command line arguments passed to the parent process N/A args N/A N/A parser parse_args N/A parameters N/A args parameters N/A parameters N/A parameters N/A N/A json loads parameters N/A N/A parent_args N/A N/A args parent_args N/A N/A json loads N/A args parent_args N/A N/A N/A isinstance parent_args list N/A obj N/A PythonActionWrapper pack N/A args pack file_path N/A args file_path parameters parameters parent_args parent_args N/A N/A N/A obj run