Skip to main content

links.utils

recurse_parse_variables

def recurse_parse_variables(variables: Dict, predicate: Callable[[str, Any],
bool],
apply: Callable[[Any], Any]) -> Dict

Parse Variables

Recursively traverse variables, applying the apply function to the value if the predicate returns True.

Arguments:

  • variables Dict - The dictionary to parse. predicate (Callable[[str, Any], bool]):The path this is in
  • apply Callable[[Any], Any] - description

Returns:

  • Dict - description

recurse_parse_variables_with_operation

def recurse_parse_variables_with_operation(
variables: Dict, operation: Operation,
predicate: Callable[[str, Any], bool], apply: Callable[[Any],
Any]) -> Dict

Parse Variables

Recursively traverse variables, applying the apply function to the value if the predicate returns True.

Arguments:

  • variables Dict - The dictionary to parse.
  • predicate Callable[[str, Any], bool] - description
  • apply Callable[[Any], Any] - description

Returns:

  • Dict - description