/AutoCert

Example of automated document generation in Python with md2pdf.

Primary LanguagePythonMIT LicenseMIT

AutoCert

A Python script which takes volunteer data as input and generates leaving certificates.

On leaving Edinburgh Nightline, volunteers receive a certificate which details their various contributions. These are formulaic by design, but creating them by hand still takes a significant chunk of time. The script automates this task, taking Three Rings CSV export data and creating a folder of PDF certificates through md2pdf. The example is in the required CSV format and produces PDFs like this

Much of this script is specific to Edinburgh Nightline (e.g. shift names). That said, if modified it could work for other Nightlines or even other data from elsewhere. Generally, it's an example of automated document generation in Python using md2pdf.

The Python and CSS are MIT licensed, released without warranty. The logo is copyright of Edinburgh Nightline and may not be used or modified without permission. The two signatures (1, 2) are from Wikimedia and are CC0 and CC BY-SA licensed respectively. The example included is real Three Rings export data, but with random names, purged emails, and attribution randomised.