This is a python application providing users with a GUI and a web interface, in order to download the FPL database by using the FPL API URL and make statistical calculations.
The Web interface of the app (the streamlit dashboard) is also hosted and available in the following link: https://fplselection.streamlit.app/
You can use it or take a peak of the functionality there!
- Upgraded to python 3.11
- Added
points_per_game
stat column to stat table - Changed documentation platform to GitHub Pages
- Added 2022-2023 season full JSON data in Archive
- User can pre-select players in the Best 15 Optimisation. This way user can force their selection, making it possible to, essentially, find how to optimise a subset of their fantasy team. This new feature is only available in the Dashboard version and not in the PyQt UI.
- UI refactored to split the table statistics and the best 15 selection into two different tabs, for better user experience.
- Columns
first_name
,second_name
are now combined into one column namedname
. - Added
Percent Selected
to the optimisation targets, so that users can find the most selected by squad members to fill their team (towards a 'template' team)
- Graphical or Web Interface choice
- Info bar for interesting stats
- Download and save useful data from FPL database
- Save and load database to/from local JSON file for OFFLINE use
- Show sorted statistics based on your selection
- Calculate best 15 selection using mathematical engine solver optimisation
- Pre-select subset of players on the best 15 optimisation to force their selection
- Calculate most valuable players
- Calculate most valuable position
- Calculate most valuable team
- Save data in CSVs
- Create a python virtual environment.
- Install the required dependencies by executing:
pip install -r requirements.txt
- Then, to execute the PYQT GUI, you execute the
main.py
file either from an IDE or from CMD running:
python fpls_ui_app/main.py
- To execute the dashboard, you execute the
dashboard.py
file either from an IDE or from CMD running:
streamlit run fpls_ui_app/dashboard.py
If you have new ideas on features you would like feel free to either send an email to
ilias4780@gmail.com
or jump into the code yourself building it. You can also use the Issues
page of GitHub.