core.config.template_loader =========================== .. py:module:: core.config.template_loader .. autoapi-nested-parse:: Custom YAML loader with template and include support for jobmon logging configuration. Classes ------- .. autoapisummary:: core.config.template_loader.TemplateLoader Functions --------- .. autoapisummary:: core.config.template_loader.include_constructor core.config.template_loader.template_constructor core.config.template_loader.load_all_templates core.config.template_loader.load_logconfig_with_templates core.config.template_loader.load_yaml_with_templates Module Contents --------------- .. py:class:: TemplateLoader(stream: Any) Bases: :py:obj:`yaml.SafeLoader` Custom YAML loader that supports !include and !template directives. Initialize TemplateLoader with a YAML stream. .. py:function:: include_constructor(loader: TemplateLoader, node: yaml.nodes.ScalarNode) -> Any Include another YAML file. .. py:function:: template_constructor(loader: TemplateLoader, node: yaml.nodes.ScalarNode) -> Any Reference a template from the templates directory. .. py:function:: load_all_templates(config_root: str) -> Dict[str, Any] Load all template files from the templates directory. Note: Core templates have been removed in favor of programmatic generation. This function now primarily supports user-provided templates via !include. .. py:function:: load_logconfig_with_templates(config_path: str) -> Dict[str, Any] Load a logconfig file with template support. Supports: - !include path/to/file.yaml - !template template_name - YAML merge operators (<<) :param config_path: Path to the main logconfig file :returns: Fully resolved configuration dictionary .. py:function:: load_yaml_with_templates(file_path: str) -> Dict[str, Any] Convenience function to load any YAML file with template support.