Models Reference¶
The SDK uses Pydantic models for type-safe request and response handling.
Common Enums¶
TimePeriod¶
Used for filtering director tournaments by time period.
RankingSystem¶
class RankingSystem(str, Enum):
MAIN = "main"
WOMEN = "women"
YOUTH = "youth"
VIRTUAL = "virtual"
PRO = "pro"
Different IFPA ranking systems.
ResultType¶
Player result activity status.
TournamentType¶
Tournament type classifications.
Player Models¶
Player¶
Main player profile model with fields including:
player_id: intfirst_name: strlast_name: strcity: strstateprov: strcountry_name: strcurrent_wppr_rank: intcurrent_wppr_value: floatactive_events: inthighest_rank: inthighest_rank_date: str
PlayerSearchResponse¶
Response from player search with:
players: list[Player]total_count: int
PvpComparison¶
Head-to-head comparison with:
player1_name: strplayer2_name: strplayer1_wins: intplayer2_wins: intties: inttotal_meetings: inttournaments: list[PvpTournament]
Rankings Models¶
RankingsResponse¶
Rankings list response with:
rankings: list[RankingEntry]total_count: int
RankingEntry¶
Individual ranking entry with:
rank: intplayer_id: intplayer_name: strcountry_name: strrating: float
Tournament Models¶
Tournament¶
Tournament information with:
tournament_id: inttournament_name: strcity: strstateprov: strcountry_name: strevent_date: strplayer_count: inttournament_director: str
TournamentSearchResponse¶
Search results with:
tournaments: list[Tournament]total_count: int
Director Models¶
Director¶
Director profile with:
director_id: intfirst_name: strlast_name: stremail: strcity: strstateprov: strcountry_name: str
Series Models¶
SeriesListResponse¶
List of series with:
series: list[Series]
Series¶
Series information with:
series_code: strseries_name: stractive: bool
Reference Models¶
CountryListResponse¶
Response from countries endpoint with:
country: list[Country]
Country¶
Country information with:
country_id: intcountry_name: strcountry_code: stractive_flag: str
StateProvListResponse¶
Response from state/province endpoint with:
stateprov: list[CountryRegions]
CountryRegions¶
Country with regions with:
country_id: intcountry_name: strcountry_code: strregions: list[Region]
Region¶
State or province information with:
region_name: strregion_code: str
For complete model definitions, see the source code in src/ifpa_api/models/.