engforge.env_var

Defines a class called EnvVariable that defines an interface for env variables with an option to obscure and convert variables, as well as provide a default option.

A global record of variables is kept for informational purposes in keeping track of progam variables

To prevent storage of env vars in program memory, access to the os env variables is provided on access of the secret variable. It is advisable to use the result of this as directly as possible when dealing with actual secrets.

For example add: `db_driver(DB_HOST.secret,DB_PASSWORD.secret,…)

Functions

parse_bool

Classes

EnvVariable

A method to wrap SECRETS and in application with a way to get the value using self.secret Do not store values from self.secret to ensure security