WebLive
PU GPA Calculator
Calculate your GPA and CGPA with the official University of the Punjab grading scale
What it does
A simple Streamlit app that calculates your semester GPA and CGPA using the official University of the Punjab grading scale. You enter your courses, credit hours and marks, and it does the rest, including combining the result with your CGPA from previous semesters.
Features
- Add courses with credit hours and marks percentage and get the letter grade and GPA instantly
- Enter your previous CGPA and total credit hours, then add the new semester to see your updated CGPA
- A separate tab for calculating CGPA from a list of semester GPAs
- Uses PU's actual grading table, not a generic 4.0 scale
Grading scale
| Marks % | Grade | Points |
|---|---|---|
| 85 and above | A | 4.00 |
| 80 to 84 | A- | 3.70 |
| 75 to 79 | B+ | 3.30 |
| 70 to 74 | B | 3.00 |
| 65 to 69 | B- | 2.70 |
| 61 to 64 | C+ | 2.30 |
| 58 to 60 | C | 2.00 |
| 55 to 57 | C- | 1.70 |
| 50 to 54 | D | 1.00 |
| Below 50 | F | 0.00 |
Source: PU official grading rules
The minimum CGPA for a BS degree at PU is 2.00, and the app flags it if your updated CGPA drops below that.
Run it locally
git clone https://github.com/MalahimHaseeb/pu-cal
cd pu-cal
pip install -r requirements.txt
streamlit run main.py
It opens in your browser at localhost:8501. The app is plain Python and Streamlit with no backend and no database.