lib5c.writers.config module

Module for wrappers around ConfigParser for writing config files.

lib5c.writers.config.write_config(outfile, name, data)[source]

Writes key-value data to a simple config file.

Parameters:
  • outfile (str) – File to write to.
  • name (str) – Section name for the config.
  • data (dict) – The data to write in the config.