Creating a parserΒΆ
To parse config using multiconfparse you must first create a ConfigParser object:
config_parser = multiconfparse.ConfigParser()
The full documentation for creating ConfigParser objects is:
-
class
multiconfparse.ConfigParser(config_default=NOT_GIVEN) Create a new ConfigParser object. Options are:
config_default: the default value to use in theNamespacereturned byparse_config()for config items for which no value was found.The default behaviour (when
config_defaultisNOT_GIVEN) is to represent these config items with the valueNone.Set
config_defaulttoSUPPRESSto prevent these configs from having an attribute set in theNamespaceat all.