Skip to content

Generate and distribute CPD certificates for users completing feedback forms

Notifications You must be signed in to change notification settings

NHSGGC/cpd_cert

Repository files navigation

cpd_cert

To install, activate virtualenv and pip install -r requirements.txt. Create a new settings.py from the template settings_sample.py, then run ./main.py.

  1. Extracts data from Google Sheets linked to a Google Form,
  2. inputs the data into a PDF certificate,
  3. sends PDF as attachment to email address of form submitter.

Will run on a loop with a 2 minute interval until interrupted.

Settings

SPREADSHEET_ID parameter in settings.py should be obtained from
https://docs.google.com/spreadsheets/d/SPREADSHEET_ID/edit

Cache

Any email address that is successfully sent a PDF will be added to cache.pickle. Be sure to delete this when running a new job.

Auth

Authentication seems to fail in Microsoft Edge browser, so try Firefox or Google Chrome instead.

Note that if it has been a long time since last run, you might need to delete token.pickle to allow Google to reauthenticate (should pop open in browser). Remember to authenticate using account [email protected].

About

Generate and distribute CPD certificates for users completing feedback forms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages