tsdat.config.utils
¶
Functions¶
Configure yaml to automatically substitute environment variables |
|
Class to instantiate one or more classes given a dictionary containing |
Function Descriptions
-
tsdat.config.utils.
configure_yaml
()[source]¶ Configure yaml to automatically substitute environment variables referenced by the following syntax:
${VAR_NAME}
-
tsdat.config.utils.
instantiate_handler
(*args, handler_desc: Dict = None) → Union[object, List[object]][source]¶ Class to instantiate one or more classes given a dictionary containing the path to the class to instantiate and its parameters (optional). This method returns the handle(s) to the instantiated class(es).
- Parameters
handler_desc (Dict, optional) – The dictionary containing at least a
classname
entry, which should be a str that links to a python module on the PYTHONPATH. Thehandler_desc
can also contain aparameters
entry, which will is passed as a keyword argument to classes instantiated by this method. This parameter defaults to None.- Returns
The class, or list of classes specified by the handler_desc
- Return type
Union[object, List[object]]