Player
The Player dataclass holds individual player metadata.
Properties
- Name
name- Type
- str
- Description
The name of the player.
- Name
side- Type
- Literal['left', 'right'] | None
- Description
The preferred side the player plays on.
- Name
nationality- Type
- str | None
- Description
The nationality of the player.
Initialization
Creates a new instance of a Player.
Keyword Arguments
- Name
name- Type
- str
- Description
The name of the player.
- Name
side- Type
- Literal['left', 'right'] | None
- Description
The preferred side the player plays on.
- Name
nationality- Type
- str | None
- Description
The nationality of the player.
Instantiation
class
Playerfrom padelkit import Player
player = Player(
name="Alejandro Galán",
side="left",
nationality="ESP"
)
Output structure
Player(
name='Alejandro Galán',
side='left',
nationality='ESP'
)