GithubHelp home page GithubHelp logo

tpo-reportgen's Introduction

TPO-ReportGen

Generates branch wise, date wise reports of training and placement data from the unoffical google sheet.

Steps to Setup

Set up your directory

  • Clone the Repo From the directory where you want this project added, run the following command.
https://github.com/HelloKunal/TPO-ReportGen.git

Set up your environment

Enable the API

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
Authorize credentials for a desktop application

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.

  1. Go to Credentials
https://console.cloud.google.com/apis/credentials
  1. Click Create Credentials > OAuth client ID.
  2. Click Application type > Desktop app.
  3. In the Name field, type a name for the credential. This name is only shown in the Google Cloud console.
  4. Click Create. The OAuth client created screen appears, showing your new Client ID and Client secret.
  5. Click OK. The newly created credential appears under OAuth 2.0 Client IDs.
  6. Save the downloaded JSON file as credentials.json, and move the file to your working directory/static.

Steps to Use

Static Folder

BRANCH.txt

Add all branches line by line you want the report for. The values are (CSE, ECE, EE, ME, CHEM, CE, MME)

prev_year.json

Here you can add, modify, leave empty the data branchwise for prev year comparison reports.

header_footer.json

Here you can add, modify, leave empty the data branchwise for Overview and Analysis for reports.

front_page.png

Modify this for changing the front page.

default_theme.png

If you want to change the theme. Only change the themes, and also add theme for table (MUST). Do not add any data.

credentials.json

Add your google API creds file here

Run

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.

tpo-reportgen's People

Contributors

hellokunal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.