Follow the next steps to execute the API. Section 1 is optional.
-
Install virtualenv library:
$ pip install virtualenv
-
Create an environment:
$ virtualenv venv
-
Activate the environment:
$ source ./venv/bin/activate
or
$ source ./venv/Scripts/activate
depending on what the directories names are.
-
Install 'requirements.txt':
$ pip install -r requirements.txt
-
Install Tkinter to be able to use the application (App.py). It must be installed apart as it does not exist on PyPi:
$ sudo apt-get install python3-tk
-
Enter the directory Code:
$ cd Code
-
Execute the desired files from console. You can either execute the app or create a class instance.
- If you want to try MatchClass.py methods, you can use __TestMatchClass.py, where there are examples of executions relating to match information calculation. You can uncomment the lines you are interested in.
- If you want to try SeasonClass.py methods, you can use __TestSeasonClass.py, where there are examples of executions relating to season information calculation. You can uncomment the lines you are interested in.
- You can execute App.py to execute the UI designed to execute the API methods.