Spectator

cassiopeia.Summoner.current_match
cassiopeia.get_current_match(region: Optional[Union[cassiopeia.data.Region, str]] = None) cassiopeia.core.spectator.CurrentMatch
class cassiopeia.FeaturedMatches(*args, **kwargs)[source]

Bases: cassiopeia.core.common.CassiopeiaLazyList

append(item)

Append object to the end of the list.

clear()

Remove all items from list.

client_refresh_interval
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[merakicommons.container.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.

to_dict()
to_json(**kwargs)
class cassiopeia.core.spectator.CurrentMatch(*args, **kwargs)[source]

Bases: cassiopeia.core.common.CassiopeiaGhost

Searchable by []

blue_team
creation
duration
exists
classmethod from_data(data: cassiopeia.core.spectator.CurrentGameInfoData, summoner: Union[cassiopeia.core.summoner.Summoner, str])[source]
id
map
mode
observer_key
participants
platform
queue
red_team
region
teams
type
class cassiopeia.core.spectator.Team(**kwargs)[source]

Bases: cassiopeia.core.common.CassiopeiaObject

Searchable by []

bans
classmethod from_data(data: cassiopeia.core.common.CoreData, match: cassiopeia.core.spectator.CurrentMatch)[source]
participants
side
class cassiopeia.core.spectator.Participant(**kwargs)[source]

Bases: cassiopeia.core.common.CassiopeiaObject

Searchable by [‘str’, ‘Summoner’, ‘Champion’]

champion
classmethod from_data(data: cassiopeia.core.common.CoreData, match: cassiopeia.core.spectator.CurrentMatch)[source]
is_bot
runes
side
summoner
summoner_spell_d
summoner_spell_f
team