Skip to content

player

player

Player domain object.

Player dataclass

Player(
    id: int,
    name: str,
    team: str,
    position: str,
    price: float,
    timeseries: DataFrame,
    news: Optional[dict] = None,
)

Represents a Fantasy Premier League player.

ATTRIBUTE DESCRIPTION
id

Unique player identifier

TYPE: int

name

Player full name

TYPE: str

team

Current team

TYPE: str

position

Position (GK, DEF, MID, FWD)

TYPE: str

price

Current price in FPL

TYPE: float

timeseries

Historical stats (points, xG, minutes, etc.)

TYPE: DataFrame

news

Latest news/injury information

TYPE: Optional[dict]

last_5_points property

last_5_points: float

Average points over last 5 gameweeks.

availability property

availability: float

Availability score (0-1) based on news.