This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Walk and extract recursively from a given dictionary all available complete paths to data values, including nodes that are nested lists of dictionaries (from root to leaf) as a list of nested nodes. | |
| """ | |
| import copy | |
| def get_paths_from_dict(in_dict, io_final_list=None, io_temp_list=None, in_extract_list=True) -> list: | |
| """ | |
| Walk and extract all available complete paths to data values as a list of nested nodes from dictionary, recursively. | |
| The method also handles dictionaries within nested lists (a specific pattern is used for indexing list elements) |