PyCert: Automated Certificate Generator and Emailer for PyCon PH
Developed for PyCon PH 2015, this script automates the process of creating and distributing attendance certificates. It efficiently processes a CSV file containing attendee names and emails, generates individual PDF certificates, and emails them to each participant. Due to its effectiveness, it has been utilized annually to handle certificate distribution for hundreds of attendees.
- Input: accepts a CSV file which contains a list of attendee names and emails
- Output: generate multiple PDFs (certificate of attendance) and then sends the certificates via email to each paticipant.
Main Parts:
- certificate maker
- email sender with pdf attachment
(pycert) $ pip install -r requirements.txt
Add a settings.json
in config/
folder with the following format:
{
"gmail_user": "[email protected]",
"gmail_password": "<your-app-password>"
}
(pycert) $ python certificate_maker.py
[2021-03-18 11:59:29,325] INFO certificate_maker 131 - Creating certificate for Micaela Reyes
[2021-03-18 11:59:29,480] INFO certificate_maker 90 - micaela_reyes.pdf
[2021-03-18 11:59:32,783] INFO certificate_maker 118 - Email sent!
[2021-03-18 11:59:32,784] INFO certificate_maker 131 - Creating certificate for Matt Lebrun
[2021-03-18 11:59:32,947] INFO certificate_maker 90 - matt_lebrun.pdf
[2021-03-18 11:59:36,374] INFO certificate_maker 118 - Email sent!
[2021-03-18 11:59:36,374] INFO certificate_maker 136 - Done!