class documentation

Create a config parser composed by other ConfigFileParser instances.

The composite parser will successively try to parse the file with each parser, until it succeeds, else raise exception with all encountered errors.

Method __call__ Undocumented
Method __init__ Undocumented
Method get_syntax_description Returns a string describing the config file syntax.
Method parse Parses the keys and values from a config file.
Method serialize Serialize items using the first parser in the composite.
Instance Variable parsers Undocumented
def __call__(self): (source)

Undocumented

def __init__(self, config_parser_types): (source)

Undocumented

def get_syntax_description(self): (source)

Returns a string describing the config file syntax.

def parse(self, stream): (source)

Parses the keys and values from a config file.

NOTE: For keys that were specified to configargparse as action="store_true" or "store_false", the config file value must be one of: "yes", "no", "on", "off", "true", "false". Otherwise an error will be raised.

Parameters
stream:io.IOBaseA config file input stream (such as an open file object).
Returns
OrderedDictItems where the keys are strings and the values are either strings or lists (eg. to support config file formats like YAML which allow lists).
def serialize(self, items): (source)

Serialize items using the first parser in the composite.

Undocumented