gws.config.parser

Parse and validate the main cfg and project configs

Source code: gws.config.parser

Module Contents

gws.config.parser.CONFIG_PATH_PATTERN = '\\bconfig\\.(py|json|yaml|cx)$'
gws.config.parser.CONFIG_FUNCTION_NAME = 'config'
gws.config.parser.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

class gws.config.parser.ConfigParser(specs: gws.SpecRuntime)

Read and parse the main config file

parse_main(config_path=None) gws.Config | None
parse_main_from_dict(dct, config_path) gws.Config | None
read(path)
read2(path)
parse_cx_config(path)