OpenFactory Utils Module - General functions
OpenFactory utils module.
-
openfactory.utils.find_yaml_files(folder_path, pattern='app_*.yml')[source]
Recursively find YAML files matching a pattern in a folder and its subfolders.
- Return type:
List[str]
- Parameters:
-
- Returns:
list – A list of paths to the matching YAML files.
-
openfactory.utils.get_nested(data, keys, default=None)[source]
Get safely a nested value from a dictionary.
- Return type:
Any
- Parameters:
data (dict) – The dictionary to search.
keys (list) – A list of keys to traverse the dictionary.
default – The default value to return if the key is not found.
- Returns:
The value found at the nested key or the default value.