Skip to content

PyCert: Automated Certificate Generator and Emailer for PyCon PH

Notifications You must be signed in to change notification settings

codemickeycode/pycert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pycert

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

Dev Environment Setup

(pycert) $ pip install -r requirements.txt

Settings

Add a settings.json in config/ folder with the following format:

{
    "gmail_user": "[email protected]",
    "gmail_password": "<your-app-password>"
}

Running the Script

(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!

References:

Generating PDF

Sending Email

About

PyCert: Automated Certificate Generator and Emailer for PyCon PH

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages