This package's primary purpose is to make it easier to change a programs default configuration by loading a custom configuration file in either YAML format or JSON Format.
It does this by performing a dictionary update on a supplied default configuration.
pip install ezedcfg
from ezedcfg import EZedCfg default_configuration = {'item 1' : 1, 'item 2': False} path_to_config = 'path/config.yml' ezcfg = EZedCfg(default_configuration, path_to_config) updated_configuration = ezcfg.load()
If you intend using a json configuration file, add json to the object arguments:
ezcfg = EZedCfg(default_configuration, path_to_config,'json')
- Free software: MIT license
- Documentation: https://ezedcfg.readthedocs.io.
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.