1. Eric Larson
  2. envconf



Envconf is a tool to convert a YAML configuration file into a flat list of environment variables.


python envconf.py --config /path/to/my/config.yaml --prefix MYAPP run-my-server


I wrote this after reading about config in the Twelve-Factor App. We use a YAML config for production apps where I work and wondered if it would be easy to switch to a env var based system. After writing this and analyzing our configuration more closely, it seemed like it could be a very good path to improving our deployment.