kickerde_api_client.mapping.season_list

Mapping and transformation logic for seasons of a given league.

Functions

league_season_list_to_dict(xml)

Transforms an API response to a dictionary of

Module Contents

kickerde_api_client.mapping.season_list.league_season_list_to_dict(xml)

Transforms an API response to a dictionary of Season objects, indexed by season ID.

Parameters:

xml (str) – a response to a LeagueSeasonList/3/ligid/{leagueId} query.

Return type:

dict[kickerde_api_client.model.SeasonId, kickerde_api_client.model.Season]