ezedcfg

A basic configuration loading package


Keywords
ezedcfg, configuration, development-utility, python3
License
MIT
Install
pip install ezedcfg==0.1.7

Documentation

EZedCfg

A basic configuration loading package

Documentation Status Updates

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.

Installation

pip install ezedcfg

Usage

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')

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.