Skip to content

Commit 821e4fe

Browse files
committed
update docs
1 parent 5aa11c1 commit 821e4fe

File tree

1 file changed

+20
-40
lines changed

1 file changed

+20
-40
lines changed

README.md

Lines changed: 20 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -14,66 +14,46 @@ pip install -r requirements.txt
1414
```
1515
## Usage
1616

17-
### 1. For breadth electives
18-
- First find the slots available for your elective:
19-
- Go to Academic -> Time Table -> Central TimeTable 2023-2024 AUTUMN (year and session could vary)
20-
- Go to the "COMMON SUBJECTS AND BREADTH SLOTS" section corresponding to your year, locate your department, and find the slots where `B` or `HSS` is mentioned
21-
<br></br>
22-
- Run the `find_breadths.py` script following the format:
17+
- Run the `gyfe.py` script following the format:
2318
```sh
24-
python3 find_breadths.py --slots <list-of-slots>
19+
python3 gyfe.py <breadth/depth> --year <year-of-study> --session <session> --semester <semester>
2520
```
21+
- The first argument is either `breadth` or `depth`, depending on which electives you want to find
22+
- `--year` is your year of study **(single digit)**, eg: `3`
23+
- `--session` is in the format `YYYY-YYY`, eg: `2023-2024`
24+
- `--semester` is either `AUTUMN` or `SPRING`
25+
> **Note**
26+
> - `--session` has a default value of `2023-2024`, and `--semester`` has a default value of `SPRING`
27+
> - This must be changed every semester
2628
- Optional flag(s):
27-
- `-o` or `--overwrite`: Overwrite the old `breadth_electives.csv` file
2829
- `--notp`: Don't use the `token.json` file to login, instead enter OTP manually (easier setup)
2930
<br></br>
30-
- This will generate a file called `breadth_electives.csv` with all the breadth electives, along with `available_breadths.txt`, which will list the breadth electives available to you (based on your slots)
31+
- This will generate either `available_breadths.txt` or `available_depths.txt` depending on the first argument
3132

3233

33-
#### Example(s)
34+
#### Example(s)
3435
```sh
35-
python3 find_breadths.py --slots F4 G3
36-
# find breadth electives for slots F4 and G3 from pre-existing breadth_electives.csv file
36+
python3 gyfe.py depth --year 3 --session 2023-2024 --semester AUTUMN
37+
# find depth electives for 3rd year, Autumn 2023-2024, with automatic OTP fetching for login
3738

38-
python3 find_breadths.py -o --slots F4 G3
39-
# generate a new breadth_electives.csv with automatic OTP fetching for login and find breadth electives for slots F4 and G3
39+
python3 gyfe.py depth --notp --year 3 --session 2023-2024 --semester AUTUMN
40+
# find depth electives for 3rd year, Autumn 2023-2024, with manual OTP input for login
4041

41-
python3 find_breadths.py -o --notp --slots F4 G3
42-
# generate a new breadth_electives.csv with manual OTP input for login and find breadth electives for slots F4 and G3
42+
python3 gyfe.py breadth --year 3 --session 2023-2024 --semester AUTUMN
43+
# find breadth electives for 3rd year, Autumn 2023-2024, with automatic OTP fetching for login
4344

45+
python3 gyfe.py breadth --notp --year 3 --session 2023-2024 --semester AUTUMN
46+
# find breadth electives for 3rd year, Autumn 2023-2024, with manual OTP input for login
4447
```
4548
- Example `available-breadths.txt`:
4649
<img src="./sample_breadths.png">
4750

48-
---
49-
50-
### 2. For depth electives
51-
- Run the `find_depths.py` script following the format:
52-
```sh
53-
python3 find_depths.py --dept <department-code> --year <year-of-study> --session <session> --semester <semester>
54-
```
55-
- `--dept` is the **2-letter code** of your department, eg: `CS`, `MA`, `IM`, etc.
56-
- `--year` is your year of study **(single digit)**, eg: `3`
57-
- `--session` is in the format `YYYY-YYY`, eg: `2023-2024`
58-
- `--semester` is either `AUTUMN` or `SPRING`
59-
- Optional flag(s):
60-
- `--notp`: Don't use the `token.json` file to login, instead enter OTP manually (easier setup)
61-
62-
#### Example(s)
63-
```sh
64-
python3 find_depths.py --dept CS --year 3 --session 2023-2024 --semester AUTUMN
65-
# find depth electives for CS 3rd year, Autumn 2023-2024, with automatic OTP fetching for login
66-
67-
python3 find_depths.py --notp --dept CS --year 3 --session 2023-2024 --semester AUTUMN
68-
# find depth electives for CS 3rd year, Autumn 2023-2024, with manual OTP input for login
69-
```
70-
7151
- Example `available-depths.txt`:
7252
<img src="./sample_depths.png">
7353

7454
---
7555

7656
### Future plans
77-
- Automate the fetching of breadth slots
57+
- See how your timetable will look like with the electives you choose (OR somehow merge this with [what-slot](https://github.com/met-kgp/what-slot))
7858
- Make it a web app for ease of use
7959

0 commit comments

Comments
 (0)