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 theNamespace
returned byparse_config()
for config items for which no value was found.The default behaviour (when
config_default
isNOT_GIVEN
) is to represent these config items with the valueNone
.Set
config_default
toSUPPRESS
to prevent these configs from having an attribute set in theNamespace
at all.