gws.config.parser

Parse and validate the main cfg and project configs

Source code: gws.config.parser

Module Contents

gws.config.parser.CONFIG_FUNCTION_NAME = 'config'
gws.config.parser.CONFIG_PATH_PATTERN = '\\bconfig\\.(py|json|yaml|cx)$'
class gws.config.parser.ConfigParser(specs: gws.SpecRuntime)

Read and parse the main config file

parse_cx_config(path)
parse_main(config_path=None) gws.Config | None
parse_main_from_dict(dct, config_path) gws.Config | None
read(path)
read2(path)
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