This repository contains a script that allows you to calculate the average of your grades from university, based on the Danish grading scale. By providing a PDF file with the respective grades, the script will process the data and provide you with the average grade.
To use the script, follow these steps:
-
Update the
before_grades
andafter_grades
variables in theparse.pdf.py
file. Set them to the words that appear before and after the actual grades in your PDF file. This will help the script locate the grades correctly. -
Run the script by executing the following command in the terminal or command prompt, replacing .pdf with the name of your PDF file:
python .\__main__.py <filename>.pdf
Note that you don't need to provide the full path to the PDF file since the script handles that internally.
-
The script will process the PDF file and calculate the grade average. The result will be printed to the console in the following format:
Grade average: <average of grades>
I hope you find this script useful for calculating your grade average.