Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 1.19 KB

README.md

File metadata and controls

61 lines (41 loc) · 1.19 KB

ID Generator for DevFest

This similar code can be used further for certificate generation also.

How to Use 😕

Get your credentials.json file

Visit this and click on the 'Enable the Google Sheets API' to enable sheets API for your account, and get your credentials.json file.

Install pipenv

Use the command

sudo -H pip install pipenv

and then simply setup pipenv

pipenv install

and activate pipenv shell using

pipenv shell

Create folders if not already

    mkdir cards
    mkdir qrcodes

Add a .env file with Mailjet credentials and Google Sheet ID

Create a .env file in the root directory of your project, and add the following variables:

FONT=<FONT-FILE-NAME>
SHEET_ID=<YOUR-GOOGLE-SHEET-ID>
ORG_EMAIL=<ORG-EMAIL>
ORG_NAME=<ORG-NAME>
MJ_APIKEY_PUBLIC=<YOUR-MAILJET-PUBLIC-KEY>
MJ_APIKEY_PRIVATE=<YOUR-MAILJET-PRIVATE-KEY>
SG_APIKEY=<YOUR-SENDGRID-API-KEY>

Now simply run:

    python idgen.py

Makers 🛠