parser ====== .. py:module:: parser Classes ------- .. autoapisummary:: parser.Parser Module Contents --------------- .. py:class:: Parser(file_path: str) Class for parsing configuration files. .. py:attribute:: _SCHEMA_MAP .. py:attribute:: _LOADER_MAP .. py:attribute:: _PARSER_MAP .. py:attribute:: file_path .. py:attribute:: config_content .. py:attribute:: config_type .. py:attribute:: loader .. py:attribute:: parser .. py:method:: load_yaml(filename: str) -> dict :staticmethod: Load the yaml file in a dictionary. :param filename: The path to the yaml filename. :type filename: str :returns: The read yaml file. :rtype: dict .. py:method:: get_config_type(content: dict) -> str :classmethod: Return the type of the configuration. :param content: The dictionary of the configuration contents. :type content: dict :returns: The type of configuration model. :rtype: str .. py:method:: get_loader(config_type: str) :classmethod: Return the loader of the configuration. :param config_type: The type of the configuration model. :type config_type: str :returns: The loader of the raw configuration. .. py:method:: get_parser(config_type: str) :classmethod: Return the parser of the configuration. :param config_type: The type of the configuration model. :type config_type: str :returns: The parser of the raw configuration. .. py:method:: parse() Parse the component configuration file and get its arguments. :returns: A dataclass of Component configs. :rtype: AMLConfig .. py:method:: get_assets() -> dict Get the assets of the configuration file. Assets are resources needed to run jobs, pipelines, or to deploy configurations to an endpoint. The `get_assets` method returns a dictionary containing a list of each needed resource. :returns: The dictionary of resources needed for the experiment. :rtype: dict