Matches

cassiopeia.Summoner.match_history
cassiopeia.get_match_history(region: Optional[cassiopeia.data.Region] = None, platform: Optional[cassiopeia.data.Platform] = None, puuid: Optional[str] = None, begin_index: Optional[int] = None, end_index: Optional[int] = None, begin_time: Optional[arrow.arrow.Arrow] = None, end_time: Optional[arrow.arrow.Arrow] = None, queue: Optional[cassiopeia.data.Queue] = None, type: Optional[cassiopeia.data.MatchType] = None)
cassiopeia.get_match(region: Optional[Union[cassiopeia.data.Region, str]] = None) cassiopeia.core.match.Match
class cassiopeia.core.match.MatchHistory(*args, **kwargs)[source]

Bases: cassiopeia.core.common.CassiopeiaLazyList

The match history for a summoner. By default, this will return the entire match history.

append(item)

Append object to the end of the list.

begin_index
begin_time
clear()

Remove all items from list.

contains(item: Any) bool
continent() cassiopeia.data.Continent[source]
copy()

Return a shallow copy of the list.

count(object)

Return number of occurrences of value.

delete(item: Any) None
end_index
end_time
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)[source]
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.

match_type() cassiopeia.data.MatchType[source]
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() cassiopeia.data.Queue[source]
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.Match(*args, **kwargs)[source]

Bases: cassiopeia.core.common.CassiopeiaGhost

Searchable by [‘str’, ‘Continent’, ‘Queue’, ‘MatchType’, ‘GameMode’, ‘Map’, ‘GameType’, ‘Item’, ‘Patch’, ‘Summoner’, ‘SummonerSpell’]

blue_team
continent

The continent for this match.

creation
duration
exists
classmethod from_match_reference(ref: cassiopeia.core.match.MatchReferenceData)[source]
game_type
id
is_remake
kills_heatmap()[source]
map
mode
participants
patch
platform

The platform for this match.

queue
red_team
region

The region for this match.

start
teams
timeline
type
version
class cassiopeia.core.match.Team(**kwargs)[source]

Bases: cassiopeia.core.common.CassiopeiaObject

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

bans
baron_kills
dominion_score
dragon_kills
first_baron
first_blood
first_dragon
first_inhibitor
first_rift_herald
first_tower
classmethod from_data(data: cassiopeia.core.common.CoreData, match: cassiopeia.core.match.Match)[source]
inhibitor_kills
participants
rift_herald_kills
side
tower_kills
win
class cassiopeia.core.match.Participant(**kwargs)[source]

Bases: cassiopeia.core.common.CassiopeiaObject

Searchable by [‘str’, ‘Summoner’, ‘Champion’, ‘Side’, ‘Rune’, ‘SummonerSpell’]

champion
cumulative_timeline
ended_in_early_surrender
enemy_team
classmethod from_data(data: cassiopeia.core.common.CoreData, match: cassiopeia.core.match.Match)[source]
id
individual_position
is_bot
lane
match_history_uri
rank_last_season
role
runes
side
skill_order
stat_runes
stats
summoner
summoner_spell_d
summoner_spell_f
team
team_position
timeline
version
class cassiopeia.core.match.ParticipantStats(**kwargs)[source]

Bases: cassiopeia.core.common.CassiopeiaObject

Searchable by [‘str’, ‘Item’]

assists
baron_kills
bounty_level
champion_experience
champion_transform[source]
consumables_purchased
damage_dealt_to_buildings
damage_dealt_to_objectives
damage_dealt_to_turrets
damage_self_mitigated
deaths
double_kills
dragon_kills
first_blood_assist
first_blood_kill
first_tower_assist
first_tower_kill
classmethod from_data(data: cassiopeia.core.match.ParticipantStatsData, match: cassiopeia.core.match.Match, participant: cassiopeia.core.match.Participant)[source]
gold_earned
gold_spent
inhibitor_kills
inhibitor_takedowns
inhibitors_lost
items
items_purchased
kda
killing_sprees
kills
largest_critical_strike
largest_killing_spree
largest_multi_kill
level
longest_time_spent_living
magic_damage_dealt
magic_damage_dealt_to_champions
magic_damage_taken
neutral_minions_killed
nexus_kills
nexus_lost
nexus_takedowns
objectives_stolen
objectives_stolen_assists
penta_kills
physical_damage_dealt
physical_damage_dealt_to_champions
physical_damage_taken
quadra_kills
sight_wards_bought
spell_1_casts
spell_2_casts
spell_3_casts
spell_4_casts
summoner_spell_1_casts
summoner_spell_2_casts
time_CCing_others
time_played
total_damage_dealt
total_damage_dealt_to_champions
total_damage_shielded_on_teammates
total_damage_taken
total_heal
total_heals_on_teammates
total_minions_killed
total_time_cc_dealt
total_time_spent_dead
total_units_healed
triple_kills
true_damage_dealt
true_damage_dealt_to_champions
true_damage_taken
turret_kills
turret_takedowns
turrets_lost
unreal_kills
vision_score
vision_wards_bought
vision_wards_placed
wards_killed
wards_placed
win
class cassiopeia.core.match.ParticipantTimeline[source]

Bases: object

champion_assists
champion_deaths
champion_kills
events
frames
classmethod from_data(match: cassiopeia.core.match.Match)[source]
class cassiopeia.core.match.Timeline(*args, **kwargs)[source]

Bases: cassiopeia.core.common.CassiopeiaGhost

continent
first_tower_fallen
frame_interval
frames
id
platform
region
class cassiopeia.core.match.Frame(**kwargs)[source]

Bases: cassiopeia.core.common.CassiopeiaObject

events
participant_frames
timestamp
class cassiopeia.core.match.ParticipantFrame(**kwargs)[source]

Bases: cassiopeia.core.common.CassiopeiaObject

creep_score
current_gold
dominion_score
experience
gold_earned
level
neutral_minions_killed
participant_id
position
team_score
class cassiopeia.core.match.Event(**kwargs)[source]

Bases: cassiopeia.core.common.CassiopeiaObject

Searchable by [‘str’]

after_id
ascended_type
assisting_participants
before_id
building_type
captured_point
creator_id
item_id
killer_id
lane_type
level_up_type
monster_sub_type
monster_type
participant_id
position
side
skill
timestamp
tower_type
type

CHAMPION_KILL, WARD_PLACED, WARD_KILL, BUILDING_KILL, ELITE_MONSTER_KILL, ITEM_PURCHASED, ITEM_SOLD, ITEM_DESTROYED, ITEM_UNDO, SKILL_LEVEL_UP, ASCENDED_EVENT, CAPTURE_POINT, PORO_KING_SUMMON

Type

Legal values

victim_id
ward_type
class cassiopeia.core.match.Position(**kwargs)[source]

Bases: cassiopeia.core.common.CassiopeiaObject

location
x
y
class cassiopeia.core.match.CumulativeTimeline(id: int, participant_timeline: cassiopeia.core.match.ParticipantTimeline)[source]

Bases: object

class cassiopeia.core.match.ParticipantState(id: int, time: datetime.timedelta, participant_timeline: cassiopeia.core.match.ParticipantTimeline)[source]

Bases: object

The state of a participant at a given point in the timeline.

assists
creep_score
current_gold
deaths
dominion_score
experience
gold_earned
items
kda
kills
level
neutral_minions_killed
objectives

Number of objectives assisted in.

position
skills
team_score