mediahandler.util.config

Module: mediahandler.util.config

Module contains:

mediahandler.util.config.make_config(new_file=None)

Generates default yaml mediahandler configuration file.

Optional argument:
  • new_file

    Path to a yaml mediahandler configuration file. Will verify that the file exists and is readable.

mediahandler.util.config.parse_config(file_path)

Reads and parses a yaml mediahandler configuration file.

Optional argument:
  • file_path

    Path to a valid yaml mediahandler configuration file.

Uses settings.yml validation structure to build missing and default values. Sends values to the correct _get_valid_<type>() function for validation.