Skip to main content

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


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)

Uploaded Source

Built Distribution

envyconfig-0.3.1-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

Supported by

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