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.2.tar.gz
(6.5 kB
view hashes)
Built Distribution
Close
Hashes for envyconfig-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c71e16fdca086f6e80c68ace1546e8d7d2c9b6513ed56092f3648d12fa661d30 |
|
MD5 | b87d0f91ac71ee34fd9d793f0f691931 |
|
BLAKE2b-256 | 4d2c508cdcba9156a431b15c05cabffc55393a9043a15a9ce3aa06afcb63b427 |