get_dict_path#
- eoio.utils.dict_tools.get_dict_path(input_dict: dict, value: str, new_list: list | None = None) list[source]#
Return list of keys to get to value in input dictionary. Empty list returned if value isn’t present in dictionary
- Parameters:
input_dict – input dictionary through which to search for the value given
value – key to look for in the input dictionary
new_list – optional list to append key path to
- Returns:
List containing the key path to
value.