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.2 (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.

Source Distribution

ezedcfg-0.1.5.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

ezedcfg-0.1.5-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file ezedcfg-0.1.5.tar.gz.

File metadata

  • Download URL: ezedcfg-0.1.5.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ezedcfg-0.1.5.tar.gz
Algorithm Hash digest
SHA256 d6c6272edfaf2de729f174569c50feba88f57f72b02d80528a1d0fac9a026fe3
MD5 562f3180d47459a7a3892c7b67cb0523
BLAKE2b-256 f43faf957f8d9901e2ee397e89eaca1d8910ab4192337172983cae76029fcba3

See more details on using hashes here.

File details

Details for the file ezedcfg-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for ezedcfg-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 226da3adc30efae307058d415dff956e0fbaafb47227867c3c3c1ec6db34d684
MD5 b5e8eb36ceac5b765c8ec60dc8e63ffb
BLAKE2b-256 84d97cf4f85f17cac43c7d9b4fb5132ea80da6315449876a588664a3287944e2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page