A basic configuration loading package
Project description
EZedCfg
A basic configuration loading package
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')
Free software: MIT license
Documentation: https://ezedcfg.readthedocs.io.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ezedcfg-0.1.7.tar.gz
.
File metadata
- Download URL: ezedcfg-0.1.7.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b11b688d1b424e80f5153ea1102ba8b924340cdbfe988bf52ba426315a18049 |
|
MD5 | bcbc022e6674c41f87f4da4bde4bc78a |
|
BLAKE2b-256 | f041ad5b817498edc7fab554f027bc0ebb763df4d31963a1d614791620fb3777 |
File details
Details for the file ezedcfg-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: ezedcfg-0.1.7-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 876aa49c47adf7742eded1eeddf005acbbfda269bc8cab83e8c294b4629bea4c |
|
MD5 | a91558e4ed28c1c50dea63c60adf6f68 |
|
BLAKE2b-256 | d9bd873d3200ebad0807ec240d06cb8d423977dcd772df67ded3614504898c5f |