Generates branch wise, date wise reports of training and placement data from the unoffical google sheet.
- Clone the Repo From the directory where you want this project added, run the following command.
https://github.com/HelloKunal/TPO-ReportGen.git
Before using Google APIs, you need to turn them on in a Google Cloud project. You can turn on one or more APIs in a single Google Cloud project. In the Google Cloud console, enable the Google Sheets API.
https://console.cloud.google.com/flows/enableapi?apiid=sheets.googleapis.com
To authenticate as an end user and access user data in your app, you need to create one or more OAuth 2.0 Client IDs. A client ID is used to identify a single app to Google's OAuth servers. If your app runs on multiple platforms, you must create a separate client ID for each platform. In the Google Cloud console, go to Menu menu > APIs & Services > Credentials.
- Go to Credentials
https://console.cloud.google.com/apis/credentials
- Click Create Credentials > OAuth client ID.
- Click Application type > Desktop app.
- In the Name field, type a name for the credential. This name is only shown in the Google Cloud console.
- Click Create. The OAuth client created screen appears, showing your new Client ID and Client secret.
- Click OK. The newly created credential appears under OAuth 2.0 Client IDs.
- Save the downloaded JSON file as credentials.json, and move the file to your working directory/static.
Add all branches line by line you want the report for. The values are (CSE, ECE, EE, ME, CHEM, CE, MME)
Here you can add, modify, leave empty the data branchwise for prev year comparison reports.
Here you can add, modify, leave empty the data branchwise for Overview and Analysis for reports.
Modify this for changing the front page.
If you want to change the theme. Only change the themes, and also add theme for table (MUST). Do not add any data.
Add your google API creds file here
Inside the working directory, run.
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
py main.py
You will asked to login to your Google account to give access. Please do. Only people having access to the unofficial sheets can use the software.