Skip to main content

Python Client to generate certificates of completion.

Project description

Course Certificator Generator Python Client

Goal

It's common to have some events at the university for the "extra hours" stuff, which results in a certificate of presence. The problem is keeping track of everyone and sending all the certificates later on...

Therefore, I built this project where you'll inform:

  • The certificate template where the student name should be written to
  • The CSV file containing all the names and e-mails
  • SMTP credentials to send e-mails

Certificates will then be generated and sent to students.

How to use it?

  1. Install the library.
$ pip install ccgenerator
  1. Declare environment variables for SMTP authentication.
$ export SMTP_PASSWORD='<password>'
$ export SMTP_EMAIL=<email>
$ export SMTP_SERVER=<smtp server>
$ export SMTP_PORT=<port>
  1. Code.
import ccgenerator


if __name__ == '__main__':
    c = ccgenerator.CertificateGenerator('<email subject>',
                                         '<spreadsheet>.csv',
                                         '<certificate template>.png',
                                         <x position of the name>,
                                         <y position of the name>,
                                         '<font name>.ttf',
                                         <font size>)
    c.run()

Example

import certgenerator


if __name__ == '__main__':
    c = ccgenerator.CertificateGenerator('[WORKSHOP FEEVALE] - Certificado de Conclusão',
                                         'participantes.csv',
                                         'certificate.png',
                                         640,
                                         1000,
                                         'DejaVuSans.ttf',
                                         200)
    c.run()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ccgenerator-0.0.2.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

ccgenerator-0.0.2-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page