demessaging.utils module
Utilities for the demessaging module.
Functions:
|
Append the parameters section to the docstring of a model. |
|
Build the docstring for the parameters of a model. |
|
Merge two configuration dictionaries. |
|
|
|
- demessaging.utils.append_parameter_docs(model: Type[BaseModel]) Type[BaseModel] [source]
Append the parameters section to the docstring of a model.
- demessaging.utils.build_parameter_docs(model: Type[BaseModel]) str [source]
Build the docstring for the parameters of a model.
- demessaging.utils.merge_config(base: Dict, to_merge: Dict) Dict [source]
Merge two configuration dictionaries.
- Parameters:
base (Dict) – The base dictionary that to_merge shall be merged into.
to_merge (Dict) – The dictionary to merge.
- Returns:
base merged with to_merge
- Return type:
Dict
Notes
base is modified in-place!