Function - merge_configs#
- openfl.utilities.utils.merge_configs(overwrite_dict=None, value_transform=None, **kwargs)[source]#
Create Dynaconf settings, merge its with overwrite_dict and validate result.
This function creates a Dynaconf settings object, merges it with an optional dictionary, applies an optional value transformation, and validates the result.
- Parameters:
overwrite_dict (Optional[dict], optional) – A dictionary to merge with the settings. Defaults to None.
value_transform (Optional[List[Tuple[str, Callable]]], optional) – A list of tuples, each containing a key and a function to apply to the value of that key. Defaults to None.
**kwargs – Additional keyword arguments to pass to the Dynaconf constructor.
- Returns:
The merged and validated settings.
- Return type:
Dynaconf