Module Import alias ImportFrom alias Assign NameStore ListLoad Str Str Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign AttributeStore NameLoad attr BoolOpOr NameLoad Str Assign AttributeStore NameLoad attr BoolOpOr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str BinOpAdd BinOpAdd BinOpAdd Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str BinOpAdd BinOpAdd Str SubscriptLoad NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad AttributeLoad NameLoad attr Assign NameStore BoolOpAnd NameLoad Call AttributeLoad NameLoad attr Num If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd Str SubscriptLoad NameLoad Index Str BinOpAdd BinOpAdd Str NameLoad Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd Str SubscriptLoad NameLoad Index Str NameLoad NameLoad Assign NameStore BinOpAdd BinOpAdd Str NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore IfExp NameLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num NameLoad Assign NameStore BoolOpOr NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num NameLoad If NameLoad body For NameStore NameLoad body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot BoolOpOr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call AttributeLoad NameLoad attr body Raise Call NameLoad Str Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareNotIn NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr decorator_list
N/A N/A re st2common.exceptions.content ParseException N/A __all__ N/A ActionAliasFormatParser extract_parameters_for_action_alias_db extract_parameters ActionAliasFormatParser N/A object N/A __init__ N/A N/A self alias_format param_stream N/A None None N/A N/A N/A self _format N/A alias_format N/A N/A self _param_stream N/A param_stream N/A get_extracted_param_value N/A N/A self N/A N/A N/A 
        Match command against the format string and extract paramters from the command string.

        :rtype: ``dict``
         N/A result N/A N/A param_stream N/A self _param_stream N/A snippets N/A dict N/A N/A snippets N/A key \s*(\S+?)\s* N/A N/A snippets N/A value ""|\'\'|"(.+?)"|\'(.+?)\'|({.+?})|(\S+) N/A N/A snippets N/A ext_value ""|\'\'|"(.+?)"|\'(.+?)\'|({.+?})|(.+?) N/A N/A snippets N/A pairs N/A N/A (?:^|\s+){key}=({value}) format snippets N/A N/A snippets N/A ending N/A N/A .*?(({pairs}\s*)*)$ format snippets N/A N/A snippets N/A default N/A N/A \s*=\s*(?:{ext_value})\s* format snippets N/A N/A snippets N/A optional N/A N/A N/A {{ N/A snippets N/A key N/A snippets N/A default }} N/A N/A snippets N/A required N/A N/A {{ N/A snippets N/A key }} N/A ending_pairs N/A N/A re match N/A snippets N/A ending param_stream N/A re DOTALL N/A has_ending_pairs N/A ending_pairs N/A N/A ending_pairs group 1 N/A has_ending_pairs N/A N/A kv_pairs N/A N/A re findall N/A snippets N/A pairs N/A N/A ending_pairs group 1 N/A re DOTALL N/A param_stream N/A N/A param_stream replace N/A N/A ending_pairs group 1 N/A param_stream N/A  %s  param_stream N/A optional N/A N/A re findall N/A snippets N/A optional N/A self _format N/A re DOTALL N/A param_match \1["\']?(?P<\2>(?:(?<=\').+?(?=\')|(?<=").+?(?=")|{.+?}|.+?))["\']? N/A reg N/A N/A re sub N/A (\s*) N/A snippets N/A optional N/A N/A (?: param_match )? N/A self _format N/A reg N/A N/A re sub N/A (\s*) N/A snippets N/A required param_match reg N/A reg N/A N/A ^\s* reg \s*$ N/A matched_stream N/A N/A re match reg param_stream N/A re DOTALL N/A N/A matched_stream N/A N/A N/A ParseException N/A Command "%s" doesn't match format string "%s" N/A N/A self _param_stream N/A self _format N/A matched_stream N/A N/A result N/A N/A matched_stream groupdict N/A param optional N/A N/A matched_value N/A matched_stream N/A result N/A N/A param N/A 0 None N/A matched_result N/A matched_value N/A N/A join N/A param N/A 1 N/A N/A matched_result None N/A N/A N/A result N/A N/A param N/A 0 matched_result N/A has_ending_pairs N/A N/A pair kv_pairs N/A N/A N/A result N/A N/A pair N/A 0 N/A N/A join N/A pair N/A 2 N/A N/A N/A self _format N/A N/A N/A N/A N/A self _param_stream strip N/A any N/A N/A result values N/A N/A N/A ParseException No value supplied and no default value found. N/A result N/A N/A extract_parameters_for_action_alias_db N/A N/A action_alias_db format_str param_stream N/A N/A N/A 
    Extract parameters from the user input based on the provided format string.

    Note: This function makes sure that the provided format string is indeed available in the
    action_alias_db.formats.
     N/A formats N/A N/A formats N/A N/A action_alias_db get_format_strings N/A N/A format_str formats N/A N/A N/A ValueError N/A Format string "%s" is not available on the alias "%s" N/A format_str N/A action_alias_db name N/A result N/A extract_parameters format_str format_str param_stream param_stream N/A result N/A extract_parameters N/A N/A format_str param_stream N/A N/A N/A parser N/A ActionAliasFormatParser alias_format format_str param_stream param_stream N/A N/A N/A parser get_extracted_param_value N/A