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 ccgenerator


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.3.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

ccgenerator-0.0.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file ccgenerator-0.0.3.tar.gz.

File metadata

  • Download URL: ccgenerator-0.0.3.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for ccgenerator-0.0.3.tar.gz
Algorithm Hash digest
SHA256 2293d2e8fc3f9c5add2ff56439b6e54a531554f6ea70a10c9e4a4da543e6e452
MD5 7fdc20d6f36708db69b43e3c3209438a
BLAKE2b-256 35d646b90b7419cc71bf1570c82175fa69f5672f934e18edf6a997632b433a75

See more details on using hashes here.

File details

Details for the file ccgenerator-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: ccgenerator-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for ccgenerator-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4a69b5acaa7ee140d5ab021ca882bd1bc670dfba0c6d6b8a691a285b3d84f4e8
MD5 50050823fa27ab044813b4398c837ec9
BLAKE2b-256 fcde27148ea6d2e797acabca834446b24aa12f7e93cbfb42d1b29b0064341c73

See more details on using hashes here.

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