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.
Discussion
Sign in or Join to comment or subscribe