Skip to main content

A basic configuration loading package

Project description

EZedCfg

A basic configuration loading package

https://img.shields.io/pypi/v/ezedcfg.svg https://img.shields.io/travis/stephenflynn/ezedcfg.svg 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.

History

0.1.5 (2017-09-20)

0.1.4 (2017-09-20)

  • Sundry fixes to allow Travis.ci to push a build to PyPi.

0.1.3 (2017-09-20)

  • Bugfix v2 for testing on python 3.3 and 3.4.

0.1.2 (2017-09-20)

  • Bugfix for testing on python 3.3 and 3.4.

0.1.0 (2017-09-18)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
ezedcfg-0.1.7-py3-none-any.whl (5.0 kB) Copy SHA256 hash SHA256 Wheel py3
ezedcfg-0.1.7.tar.gz (12.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page