Matches¶
-
class
arez.
PartialMatch
[source]¶ Represents a match from a single player’s perspective only.
This partial object is returned by the
PartialPlayer.get_match_history
player’s method. To obtain an object with all match information, try awaiting on this object like so:match = await partial_match
-
timestamp
¶ A timestamp of when this match happened.
- Type
-
score
¶ The match’s ending score.
The first value is always the allied-team score, while the second one - enemy team score.
-
winning_team
¶ The winning team of this match.
- Type
Literal[1, 2]
-
player
¶ The player who participated in this match.
This is usually a new partial player object.
All attributes, Name, ID and Platform, should be present.
- Type
Union[PartialPlayer, Player]
-
champion
¶ The champion used by the player in this match.
With incomplete cache, this will be a
CacheObject
with the name and ID set.- Type
Union[Champion, CacheObject]
-
loadout
¶ The loadout used by the player in this match.
- Type
-
skin
¶ The skin the player had equipped for this match.
With incomplete cache, this will be a
CacheObject
with the name and ID set.- Type
Union[Skin, CacheObject]
-
team_number
¶ The team this player belongs to.
- Type
Literal[1, 2]
-
await
__await__
()¶ Upgrades this object into a full
Match
one, containing all match players and information.Uses up a single request.
-
disconnected
¶ Returns
True
if the player has disconnected during the match,False
otherwise.This is done by checking if either
damage_bot
orhealing_bot
are non zero.- Type
-
df
¶ The Dominance Factor.
The formula is:
kills * 2 + deaths * -3 + assists
.The value signifies how “useful” the person was to the team overall. Best used when scaled and compared between team members in a match (allied and enemy).
- Type
-
kda
¶ The calculated KDA.
The formula is:
(kills + assists / 2) / deaths
.nan
is returned if there was no deaths.- Type
-
kda2
¶ The calculated KDA.
The formula is:
(kills + assists / 2) / max(deaths, 1)
, treating 0 and 1 deaths the same, meaning this will never returnnan
.- Type
-
kda_text
¶ Kills, deaths and assists as a slash-delimited string.
The format is:
kills/deaths/assists
, or1/2/3
.- Type
-
shielding
¶ This is an alias for the
damage_mitigated
attribute.- Type
-
-
class
arez.
Match
[source]¶ Represents already-played full match information.
You can get this from the
PaladinsAPI.get_match
andPaladinsAPI.get_matches
methods, as well as from upgrading aPartialMatch
object.-
timestamp
¶ A timestamp of when this match happened.
- Type
-
score
¶ The match’s ending score.
The first value is the
team1
score, while the second value -team2
score.
-
winning_team
¶ The winning team of this match.
- Type
Literal[1, 2]
-
bans
¶ A list of champions banned in this match.
With incomplete cache, the list will contain
CacheObject
objects with the name and ID set.This will be an empty list for non-ranked matches.
None
indicates there was no ban.- Type
List[Optional[Union[Champion, CacheObject]]]
-
team1
¶ A list of players in the first team.
- Type
List[MatchPlayer]
-
team2
¶ A list of players in the second team.
- Type
List[MatchPlayer]
-
players
¶ A generator that iterates over all match players in the match.
- Type
Generator[MatchPlayer]
-
-
class
arez.
LiveMatch
[source]¶ Represents an on-going live match. You can get this from the
PlayerStatus.get_live_match
method.-
team1
¶ A list of live players in the first team.
- Type
List[LivePlayer]
-
team2
¶ A list of live players in the second team.
- Type
List[LivePlayer]
-
players
¶ A generator that iterates over all live match players in the match.
- Type
Generator[LivePlayer]
-