Leagues¶
- cassiopeia.Summoner.leagues¶
- cassiopeia.get_challenger_league(region: Region | str = None) ChallengerLeague ¶
- cassiopeia.get_master_league(region: Region | str = None) MasterLeague ¶
- class cassiopeia.core.league.League(*args, **kwargs)[source]¶
Bases:
CassiopeiaGhost
Searchable by [‘str’, ‘Queue’, ‘Tier’]
- entries¶
- id¶
- name¶
- platform¶
- queue¶
- region¶
- tier¶
- class cassiopeia.core.ChallengerLeague(*args, **kwargs)[source]¶
Bases:
League
- entries¶
- id¶
- name¶
- platform¶
- queue¶
- region¶
- tier¶
- class cassiopeia.core.MasterLeague(*args, **kwargs)[source]¶
Bases:
CassiopeiaGhost
- entries¶
- id¶
- name¶
- platform¶
- queue¶
- region¶
- tier¶
- class cassiopeia.core.league.LeagueSummonerEntries(*args, **kwargs)[source]¶
Bases:
CassiopeiaLazyList
- append(item)¶
Append object to the end of the list.
- clear()¶
Remove all items from list.
- copy()¶
Return a shallow copy of the list.
- count(object)¶
Return number of occurrences of value.
- extend(iterable)¶
Extend list by appending elements from the iterable.
- filter(function)¶
- fives¶
- flex¶
- classmethod from_data(*args, **kwargs)¶
- index(object, start: int = 0, stop: int = 9223372036854775807)¶
Return first index of value.
Raises ValueError if the value is not present.
- platform¶
- pop(index: int = -1)¶
Remove and return item at index (default last).
Raises IndexError if list is empty or index is out of range.
- region¶
- remove(object)¶
Remove first occurrence of value.
Raises ValueError if the value is not present.
- reverse()¶
Reverse IN PLACE.
- search(item: Any, streaming: bool = False, reverse: bool = False) SearchableList | Generator[Any, None, None] ¶
- sort(*, key=None, reverse=False)¶
Sort the list in ascending order and return None.
The sort is in-place (i.e. the list itself is modified) and stable (i.e. the order of two equal elements is maintained).
If a key function is given, apply it once to each list item and sort them, ascending or descending, according to their function values.
The reverse flag can be set to sort in descending order.
- threes¶
- to_dict()¶
- to_json(**kwargs)¶
- class cassiopeia.core.league.MiniSeries(**kwargs)[source]¶
Bases:
CassiopeiaObject
- losses¶
- not_played¶
The number of games in the player’s promos that they haven’t played yet.
- progress¶
A list of True/False for the number of games the played in the mini series indicating if the player won or lost.
- wins¶
- wins_required¶
2 or 3 wins will be required for promotion.
- class cassiopeia.core.league.LeagueEntries(*args, **kwargs)[source]¶
Bases:
CassiopeiaLazyList
- append(item)¶
Append object to the end of the list.
- clear()¶
Remove all items from list.
- copy()¶
Return a shallow copy of the list.
- count(object)¶
Return number of occurrences of value.
- division¶
- extend(iterable)¶
Extend list by appending elements from the iterable.
- filter(function)¶
- classmethod from_data(*args, **kwargs)¶
- classmethod from_generator(generator: Generator, region: Region | str = None, queue: Queue = None, tier: Tier = None, division: Division = None, **kwargs)[source]¶
- index(object, start: int = 0, stop: int = 9223372036854775807)¶
Return first index of value.
Raises ValueError if the value is not present.
- platform¶
- pop(index: int = -1)¶
Remove and return item at index (default last).
Raises IndexError if list is empty or index is out of range.
- queue¶
- region¶
- remove(object)¶
Remove first occurrence of value.
Raises ValueError if the value is not present.
- reverse()¶
Reverse IN PLACE.
- search(item: Any, streaming: bool = False, reverse: bool = False) SearchableList | Generator[Any, None, None] ¶
- sort(*, key=None, reverse=False)¶
Sort the list in ascending order and return None.
The sort is in-place (i.e. the list itself is modified) and stable (i.e. the order of two equal elements is maintained).
If a key function is given, apply it once to each list item and sort them, ascending or descending, according to their function values.
The reverse flag can be set to sort in descending order.
- tier¶
- to_dict()¶
- to_json(**kwargs)¶
- class cassiopeia.core.league.LeagueEntry(*args, **kwargs)[source]¶
Bases:
CassiopeiaGhost
Searchable by [‘str’, ‘bool’, ‘Division’, ‘Summoner’, ‘Queue’]
- division¶
- fresh_blood¶
- classmethod from_data(data: LeagueEntryData, loaded_groups: Set[Type[CoreData]] | None = None, league: League = None)[source]¶
- hot_streak¶
- inactive¶
- league¶
- league_points¶
- losses¶
- platform¶
The platform for this champion.
- promos¶
- queue¶
- region¶
The region for this champion.
- role¶
- summoner¶
- tier¶
- veteran¶
- wins¶