YAML reader with ENV interpolation.
Project description
pyconfig
Python package for YAML config files. Reads a specified YAML file, and returns the corresponding dict structure.
Builds on the PyYAML package, with the following additions:
- Environment variables can be specified as config values.
- Nested YAML structures can be flattened get a simple key / value dict.
- Default values can be specified, for instance from the command line.
Usage
>>> import envyconfig
>>> config = envyconfig.load('config.yaml')
>>> print(config)
{'foo': {'bar': 'baz'}}
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
envyconfig-0.3.1.tar.gz
(6.5 kB
view hashes)
Built Distribution
Close
Hashes for envyconfig-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a15890a553b0999cc8804f6a5c575fa365660a4fb47d3bc9c23b541f9433ccee |
|
MD5 | b9f688589b66f0c8410c1b09b48da736 |
|
BLAKE2b-256 | fb351f7dc16222d624875827861a94ed384ea8b244a4c95dcf335e83a68b33f1 |