Using environment variables:

You can use the set environment variables using either os.environ or dotenv.get. dotenv.get has the added advantage of converting to python type. Therefore, a key value set of KEY=True will be returned as a bool type not string as os.environ would normally do.