This package helps you select the best 15 players to choose when playing a wildcard on Fantasy premier league on any given week
Project description
FPL wildcard team selector
This package helps you select the best 15 players to choose when playing a wildcard on Fantasy premier league on any given week
- Selects the best players by analyzing the latest data provided by the fantasy premier league API, and other premier league stats sources
- creates a visualization of the selected players
- creates a csv containing detailed stats on all the players available for selection
Installation
Option #1: Using pip
You can install the package using pip by running the following:
pip install FPL-wildcard-team-selector
Option #2: Download from source
Download the source code by cloning the repository. Install by navigating to the proper directory and running
python setup.py install
Usage
import the package
import FPL_wildcard_team_selector
play_wildcard function
This function selects the best 15 players to pick and creates a visualization of the selected players. It takes in the following 4 arguments:
- The amount of money that you have available. Check your team value to get an understanding of how much money you have
- minimum number of minutes that a player needs to have played in the PL this season for him to be considered for selection
- number of future gameweeks to analyze
- whether or not you want to account for penalties during the analysis (If False, uses non-penalty stats)
FPL_wildcard_team_selector.play_wildcard(money_available=103.7, minimum_number_of_minutes_played=900, number_of_future_games_to_analyze=3, account_for_penalties=True)
play_wildcard Sample Output
generate_player_stats function
This functions creates a csv containing detailed stats on all the players. It splits the players in the csv based on posistion, and it places the players in every position catergory in order of best pick to worst pick based on the following 3 arguments:
- minimum number of minutes that a player needs to have played in the PL this season for him to be added to the csv
- number of future gameweeks to analyze
- whether or not you want to account for penalties during the analysis (If False, uses non-penalty stats)
FPL_wildcard_team_selector.generate_player_stats(minimum_number_of_minutes_played=900, number_of_future_games_to_analyze=3, account_for_penalties=True)
generate_player_stats Sample Output
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file FPL_wildcard_team_selector-1.1.1.tar.gz
.
File metadata
- Download URL: FPL_wildcard_team_selector-1.1.1.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1af88251c9c9212c27dc957549c7f06ffad0e6f56d20f8cf7ce6736b04007639 |
|
MD5 | 4a27f6f42e20153eea1a86d9034820de |
|
BLAKE2b-256 | 7429b7daf6135c7f80c78d7f6cc377e2261f7b8c3f8142358990d8cd4e3d1762 |