Steven Loria

Configuration done right in Python

Steven Loria:

Stop using unversioned settings files and start storing configuration in environment variables (see The Twelve-Factor App). environs makes it easy to parse environment variables with built-in type-casting and validation. It will even read .env files, which are handy for local development.

💯% agree with using environment variables for configuration. I used to do the .gitignore a Yaml file thang, but nowadays it's all direnv and/or dotenv.

0:00 / 0:00