lib5c.parsers.config module

Module for wrappers around ConfigParser for parsing config files.

lib5c.parsers.config.parse_config(configfile, name)[source]

Parses a section from a config file into a dict.

Parameters
  • configfile (str) – The config file to parse.

  • name (str) – The section name to parse.

Returns

The data.

Return type

dict