Team
kloppy.domain.Team
dataclass
A team in a match.
ATTRIBUTE | DESCRIPTION |
---|---|
team_id |
Identifier given by the provider.
TYPE:
|
name |
Readable name of the team.
TYPE:
|
ground |
The team's ground (home or away).
TYPE:
|
players |
The team's players.
TYPE:
|
starting_formation |
The team's starting formation.
TYPE:
|
formations
class-attribute
instance-attribute
get_player_by_jersey_number
Get a player by their jersey number.
PARAMETER | DESCRIPTION |
---|---|
jersey_no
|
The jersey number of the player.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Player
|
The player with the given jersey number or
TYPE:
|
Source code in kloppy/domain/models/common.py
get_player_by_position
Get a player by their position at a given time.
PARAMETER | DESCRIPTION |
---|---|
position
|
The position.
TYPE:
|
time
|
The time for which the position should be retrieved.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Player
|
The player with the given position or
TYPE:
|
Source code in kloppy/domain/models/common.py
get_player_by_id
Get a player by their identifier.
PARAMETER | DESCRIPTION |
---|---|
player_id
|
The identifier of the player.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Player
|
The player with the given identifier or
TYPE:
|