Important
This folder contains code for updating json data
Following is the process to prepare the data for this tool :
- Head to
Pingala
=>Academic Management
=>Timetable
=>Check timetable
. Select the Academic Year & Semester, and select the option to download the data as an Excel file - Convert the
Excel
file into aCSV
file for further processing, and store the file under the root directory(any name will work) - Delete the old existing file leaving only one CSV in the folder
- Further run the bash script update_data.sh which will automatically parse all the data in the csv file and place it in the js directory.
bash update_data.sh
This files contain the code that is called to read csv and update the json file, the code uses the packages json
, os
, numpy
, pandas
and data_interpreter
defined below
The key features of this code are:
- Designed to be called directly from bash
- Gives a interactive CLI interface to user asking a [Y/n] question
- Handle Dataframe objects and dumps in json where-ever required
This file act as a package to interpret data wherever required in the data_generator.py file, the code uses the packages datetime
, pandas
and tqdm
. Defined inside are multiple functions that tackle the task of sgregating and making timetables, creating binaries for causes the concepts of which are explained in BACK_END Folder
Important
Each files contains a sample test case under the if __name__ == "__main__":
condition for Developers if needed