healthyregions / oeps

Opioid Environment Policy Scan - data explorer and backend management
https://oeps.healthyregions.org
GNU General Public License v3.0
0 stars 0 forks source link

Implement dotenv to load credentials from gitignored file #8

Closed mradamcox closed 11 months ago

mradamcox commented 11 months ago

We have to supply Google Big Query credentials to the scripts in this repo so they can interact with that service. We should begin by using dotenv. This library will automatically look for a .env file and load its content into the environment, so our scripts can get the variables with os.getenv().

While the .env file must remain out of version control, we will commit a .env.example file with the variables and empty values, so it is easy for a user to copy, rename, and update it with their own credentials.