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 the Namespace returned by parse_config() for config items for which no value was found.

    The default behaviour (when config_default is NOT_GIVEN) is to represent these config items with the value None.

    Set config_default to SUPPRESS to prevent these configs from having an attribute set in the Namespace at all.