Statistics¶
-
class
arez.
DataUsed
[source]¶ Represents API usage statistics.
You can get this from the
PaladinsAPI.get_data_used
method.Note
API sessions are automatically managed by the wrapper. The data provided here is meant solely for the API usage tracking purposes.
Note
The statistics are calculated over a rolling 24 hours window, meaning that each time you use one request, you will be getting it back exactly 24 hours later. Thus, there is no particular time at which these stats reset.
-
timestamp
¶ A timestamp of when these statistics were fetched.
- Type
-
active_sessions_limit
¶ The maximum amount of active sessions you’re allowed to have at the same time.
The default value is
50
.- Type
-
sessions_limit
¶ The maximum amount of sessions you’re allowed to use within 24 hours.
The default value is
500
.- Type
-
sessions_lifetime
¶ The amount of time, in minutes, that needs to pass since your last request, for the session to be closed.
Your next request is going to automatically start another session.
- Type
-
requests_limit
¶ The maximum amount of requests you’re allowed to use within 24 hours.
The default value is
7500
.- Type
-
-
class
arez.
Stats
[source]¶ Represents casual player stats.
You can find these on the
Player.casual
attribute.
-
class
arez.
RankedStats
[source]¶ Represents ranked player stats.
You can find these on the
Player.ranked_keyboard
andPlayer.ranked_controller
attributes.-
type
¶ The type of these stats.
- Type
Literal[“Keyboard”, “Controller”]
-
-
class
arez.
ChampionStats
[source]¶ Represents player’s champion stats.
You can get these from the
PartialPlayer.get_champion_stats
method.-
player
¶ The player these stats are for.
- Type
PartialPlayer | Player
-
champion
¶ The champion these stats are for.
With incomplete cache, this will be a
CacheObject
with the name and ID set.- Type
Champion | CacheObject
-
level
¶ The champion’s mastery level.
Will be
0
if these stats represent a single queue only.- Type
-
experience
¶ The amount of experience this champion has. Will be
0
if these stats represent a single queue only.- Type
-
last_played
¶ A timestamp of when this champion was last played, either in the given queue, or across all queues.
- 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
.math.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 returnmath.nan
.- Type
-
kda_text
¶ Kills, deaths and assists as a slash-delimited string.
The format is:
kills/deaths/assists
, or1/2/3
.- Type
-