:tocdepth: 3 :py:mod:`gws.config.parser` =========================== .. py:module:: gws.config.parser .. autoapi-nested-parse:: Parse and validate the main cfg and project configs **Source code:** :source:`gws.config.parser` Module Contents --------------- .. py:data:: CONFIG_FUNCTION_NAME :value: 'config' .. py:data:: CONFIG_PATH_PATTERN :value: '\\.(py|json|yaml|cx)$' .. py:class:: ConfigParser(specs: gws.SpecRuntime) Read and parse the main config file .. py:attribute:: errors :value: [] .. py:attribute:: paths .. py:attribute:: specs .. py:method:: parse_cx_config(path) .. py:method:: parse_main(config_path=None) -> Optional[gws.Config] .. py:method:: parse_main_from_dict(dct, config_path) -> Optional[gws.Config] .. py:method:: read(path) .. py:method:: read2(path) .. py:function:: parse(specs: gws.SpecRuntime, value, type_name: str, source_path='', read_options=None) Parse a dictionary according to the klass spec and return a config (Data) object