posty.config module

class posty.config.Config(path='config.yml')[source]

Bases: _abcoll.MutableMapping

Config object that gets passed around to various other objects. Loads config from a given YAML file.

Parameters:path – Path to a YAML file to read in as config
clean_config()[source]

Validate and clean the already-loaded config

load()[source]

Load the YAML config from the given path, return the config object