Google Sheets Installation¶
Google Sheets can be used as a database to store your parameter sets. The advantage to using this “database” over a file containing the parameters is that a team can work on the set more collaboratively and update the parameter list on the fly. The bigger advantage is that the parameter list can be run dynamically. Meaning that people, running the library simultaneously, can connect to Google Sheets and get the next parameter set in the list.
To use Google Sheets you will need to use the Google Sheets API and generate the proper credentials.
- Start by going to the Google Developer Console and login using a Google account.
- Create a new project and name it whatever you’d like. You can do this by selecting the down arrow next in the top left corner of the page next to the “Google API” logo and clicking “New Project”.
- Click “ENABLE APIS AND SERVICES”, search for “Google Sheets API” and click it. Then click “Enable”.
- Click the “Credentials” tab from the menu on the left side of the page.
- Click the dropdown at the top of the page that says “CREATE CREDENTIALS” and select “Service account”.
- Give the service a name and click “Create”.
- In the next section asking about service account permissions, create a role with by selecting “Project” then “Editor”. Then select “Continue”.
- Select “CREATE KEY”, ensure the key type of “JSON” is selected and click “CREATE”. You will give DAPT the path to this JSON file when using Google Sheets. Then click “DONE”.
- You should now be on the Credentials page of the Google Sheets API. Record the email address in the Service Account table. It should look something like