Champion Masteries

cassiopeia.get_champion_mastery(champion: Union[Champion, int, str], region: Optional[Union[Region, str]] = None) ChampionMastery
cassiopeia.get_champion_masteries(region: Optional[Union[Region, str]] = None) ChampionMasteries
class cassiopeia.ChampionMasteries(*args, **kwargs)[source]

Bases: CassiopeiaLazyList

append(item)

Append object to the end of the list.

clear()

Remove all items from list.

contains(item: Any) bool
copy()

Return a shallow copy of the list.

count(object)

Return number of occurrences of value.

delete(item: Any) None
enumerate(item: Any, reverse: bool = False) Generator[Tuple[int, Any], None, None]
extend(iterable)

Extend list by appending elements from the iterable.

filter(function)
find(item: Any, reverse: bool = False) Any
classmethod from_data(*args, **kwargs)
classmethod from_generator(generator: Generator, **kwargs)
index(object, start: int = 0, stop: int = 9223372036854775807)

Return first index of value.

Raises ValueError if the value is not present.

insert(index: int, object)

Insert object before index.

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) Union[SearchableList, Generator[Any, None, None]]
sort(*, key=None, reverse=False)

Stable sort IN PLACE.

summoner
to_dict()
to_json(**kwargs)
class cassiopeia.ChampionMastery(*args, **kwargs)[source]

Bases: CassiopeiaGhost

Searchable by [‘str’, ‘int’, ‘bool’, ‘Arrow’, ‘Champion’, ‘Summoner’]

champion

Champion for this entry.

chest_granted

Is chest granted for this champion or not in current season?

last_played

Last time this champion was played by this player.

level

Champion level for specified player and champion combination.

platform
points

Total number of champion points for this player and champion combination - used to determine champion level.

points_since_last_level

Number of points earned since current level has been achieved. Zero if player reached maximum champion level for this champion.

points_until_next_level

Number of points needed to achieve next level. Zero if player reached maximum champion level for this champion.

region
summoner

Summoner for this entry.

tokens

Number of tokens earned toward next mastery level.