Module valolyticspy.dtos.valolytics.playerstats
Expand source code
from pydantic import BaseModel
from typing import Dict, List
class MetricsDto(BaseModel):
"""
Represents a model for player statistics.
Attributes:
matches (int): The number of matches played by the player.
wins (int): The number of matches won by the player.
winrate (float): The win rate of the player.
roundsPlayed (int): The number of rounds played by the player.
roundsWon (int): The number of rounds won by the player.
roundWinrate (float): The round win rate of the player.
acs (float): The average combat score of the player.
score (int): The score of the player.
kills (int): The number of kills by the player.
multiKills (int): The number of multi-kills by the player.
deaths (int): The number of deaths by the player.
assists (int): The number of assists by the player.
nonDamagingAssists (int): The number of non-damaging assists by the player.
damagingAssists (int): The number of damaging assists by the player.
kd (float): The kill-death ratio of the player.
kad (float): The kill-assist-death ratio of the player.
killsPerRound (float): The average number of kills per round by the player.
multiKillsPerRound (float): The average number of multi-kills per round by the player.
deathsPerRound (float): The average number of deaths per round by the player.
assistsPerRound (float): The average number of assists per round by the player.
damagingAssistsPerRound (float): The average number of damaging assists per round by the player.
nonDamagingAssistsPerRound (float): The average number of non-damaging assists per round by the player.
kastRounds (int): The number of rounds where the player got either a kill, a assist, survived or being traded until 5 seconds after his death.
kast (float): The percentage of the rounds where the player got either a kill, a assist, survived or being traded until 5 seconds after his death.
tradedRounds (int): The number of rounds where the player got traded within 5 seconds after his death.
tradedRatio (float): The ratio of how often the player got traded within 5 seconds after his death.
damageDone (int): The total damage done by the player.
damageTaken (int): The total damage taken by the player.
damagePerRound (float): The average damage per round by the player.
damageDelta (float): The average difference between damage done and damage taken in a round by the player.
firstKills (int): The number of first kills by the player.
firstDeaths (int): The number of first deaths by the player.
firstKillsPerRound (float): The average number of first kills per round by the player.
firstDeathsPerRound (float): The average number of first deaths per round by the player.
firstBloodSuccessRate (float): The success rate of killing the opponent at the first duel in a round by the player.
clutchesWon (int): The number of clutches won by the player.
clutchesLost (int): The number of clutches lost by the player.
clutchWinrate (float): The win rate of clutches by the player.
headshots (int): The number of headshots by the player.
headshotRate (float): The headshot rate of the player.
bodyshots (int): The number of bodyshots by the player.
legshots (int): The number of legshots by the player.
bombPlants (int): The number of bomb plants by the player.
bombDefuses (int): The number of bomb defuses by the player.
trueKills (int): The number of kills by the player where he wasn't killed after 5 seconds.
trueKillsPerRound (float): The average number of kills per round by the player where he wasn't killed after 5 seconds.
trueDeaths (int): The number of deaths by the player where the killer wasn't killed after 5 seconds.
trueDeathsPerRound (float): The average number of deaths per round by the player where the killer wasn't killed after 5 seconds.
trueFirstKills (int): The number of first kills by the player where he wasn't killed after 5 seconds.
trueFirstKillsPerRound (float): The average number of first kills per round by the player where he wasn't killed after 5 seconds.
trueFirstKillPercentage (float): The percentage of first kills by the player where he wasn't killed after 5 seconds.
trueFirstDeaths (int): The number of first deaths by the player where the killer wasn't killed after 5 seconds.
trueFirstDeathsPerRound (float): The average number of first deaths per round by the player where the killer wasn't killed after 5 seconds.
trueFirstDeathPercentage (float): The percentage of first deaths by the player where the killer wasn't killed after 5 seconds.
firstAggressionRate (float): The aggression rate of the player.
rifleVsRifleKills (int): The number of kills with rifles against rifles by the player.
rifleVsRifleDeaths (int): The number of deaths with rifles against rifles by the player.
rifleVsRifleRatio (float): The kill-death ratio with rifles against rifles by the player.
aces (int): The number of aces by the player.
acesPerRound (float): The average number of aces per round by the player.
impact (float): The impact rating of the player (this uses a customized formula for Valorant of the HTLV 2.0 Impact Rating).
rating (float): The overall rating of the player (this uses a customized formula for Valorant of the HTLV 2.0 Rating).
vlrRatingRaw (float): The raw VLR rating of the player.
vlrRating (float): The VLR rating of the player.
spent (int): The amount of money spent by the player.
econRating (float): The economic rating of the player.
"""
matches: int
wins: int
winrate: float
roundsPlayed: int
roundsWon: int
roundWinrate: float
acs: float
score: int
kills: int
multiKills: int
deaths: int
assists: int
nonDamagingAssists: int
damagingAssists: int
kd: float
kad: float
killsPerRound: float
multiKillsPerRound: float
deathsPerRound: float
assistsPerRound: float
damagingAssistsPerRound: float
nonDamagingAssistsPerRound: float
kastRounds: int
kast: float
tradedRounds: int
tradedRatio: float
damageDone: int
damageTaken: int
damagePerRound: float
damageDelta: float
firstKills: int
firstDeaths: int
firstKillsPerRound: float
firstDeathsPerRound: float
firstBloodSuccessRate: float
clutchesWon: int
clutchesLost: int
clutchWinrate: float
headshots: int
headshotRate: float
bodyshots: int
legshots: int
bombPlants: int
bombDefuses: int
trueKills: int
trueKillsPerRound: float
trueDeaths: int
trueDeathsPerRound: float
trueFirstKills: int
trueFirstKillsPerRound: float
trueFirstKillPercentage: float
trueFirstDeaths: int
trueFirstDeathsPerRound: float
trueFirstDeathPercentage: float
firstAggressionRate: float
rifleVsRifleKills: int
rifleVsRifleDeaths: int
rifleVsRifleRatio: float
aces: int
acesPerRound: float
impact: float
rating: float
vlrRatingRaw: float
vlrRating: float
spent: int
econRating: float
class SideStatsDto(BaseModel):
"""
Represents the statistics for a side in a game.
Attributes:
Total (MetricsDto): The total metrics for the side.
Attack (MetricsDto): The attack metrics for the side.
Defense (MetricsDto): The defense metrics for the side.
"""
Total: MetricsDto
Attack: MetricsDto
Defense: MetricsDto
class MapStatsDto(BaseModel):
"""
Represents the statistics for a specific map.
Attributes:
map (str): The name of the map.
side (SideStatsDto): The statistics for each side of the map.
"""
map: str
side: SideStatsDto
class AgentStatsDto(BaseModel):
"""
Represents the statistics for a specific agent.
Attributes:
agent (str): The name of the agent.
side (SideStatsDto): The statistics for each side.
"""
agent: str
side: SideStatsDto
class PlayerStatsDto(BaseModel):
"""
Represents the statistics of a player in a game.
Attributes:
puuid (str): The unique identifier of the player.
gameName (str): The in-game name of the player.
tagLine (str): The tagline of the player.
side (SideStatsDto): The statistics of the player's side.
map (Dict[str, MapStatsDto]): The statistics of the player on different maps (mapUuid).
agent (Dict[str, AgentStatsDto]): The statistics of the player on different agents (agentUuid).
matchList (List[str]): The list of matches played by the player.
"""
puuid: str
gameName: str
tagLine: str
side: SideStatsDto
map: Dict[str, MapStatsDto]
agent: Dict[str, AgentStatsDto]
matchList: List[str]
Classes
class AgentStatsDto (**data: Any)-
Represents the statistics for a specific agent.
Attributes
agent:str- The name of the agent.
side:SideStatsDto- The statistics for each side.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Expand source code
class AgentStatsDto(BaseModel): """ Represents the statistics for a specific agent. Attributes: agent (str): The name of the agent. side (SideStatsDto): The statistics for each side. """ agent: str side: SideStatsDtoAncestors
- pydantic.main.BaseModel
Class variables
var agent : strvar model_computed_fieldsvar model_configvar model_fieldsvar side : SideStatsDto
class MapStatsDto (**data: Any)-
Represents the statistics for a specific map.
Attributes
map:str- The name of the map.
side:SideStatsDto- The statistics for each side of the map.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Expand source code
class MapStatsDto(BaseModel): """ Represents the statistics for a specific map. Attributes: map (str): The name of the map. side (SideStatsDto): The statistics for each side of the map. """ map: str side: SideStatsDtoAncestors
- pydantic.main.BaseModel
Class variables
var map : strvar model_computed_fieldsvar model_configvar model_fieldsvar side : SideStatsDto
class MetricsDto (**data: Any)-
Represents a model for player statistics.
Attributes
matches:int- The number of matches played by the player.
wins:int- The number of matches won by the player.
winrate:float- The win rate of the player.
roundsPlayed:int- The number of rounds played by the player.
roundsWon:int- The number of rounds won by the player.
roundWinrate:float- The round win rate of the player.
acs:float- The average combat score of the player.
score:int- The score of the player.
kills:int- The number of kills by the player.
multiKills:int- The number of multi-kills by the player.
deaths:int- The number of deaths by the player.
assists:int- The number of assists by the player.
nonDamagingAssists:int- The number of non-damaging assists by the player.
damagingAssists:int- The number of damaging assists by the player.
kd:float- The kill-death ratio of the player.
kad:float- The kill-assist-death ratio of the player.
killsPerRound:float- The average number of kills per round by the player.
multiKillsPerRound:float- The average number of multi-kills per round by the player.
deathsPerRound:float- The average number of deaths per round by the player.
assistsPerRound:float- The average number of assists per round by the player.
damagingAssistsPerRound:float- The average number of damaging assists per round by the player.
nonDamagingAssistsPerRound:float- The average number of non-damaging assists per round by the player.
kastRounds:int- The number of rounds where the player got either a kill, a assist, survived or being traded until 5 seconds after his death.
kast:float- The percentage of the rounds where the player got either a kill, a assist, survived or being traded until 5 seconds after his death.
tradedRounds:int- The number of rounds where the player got traded within 5 seconds after his death.
tradedRatio:float- The ratio of how often the player got traded within 5 seconds after his death.
damageDone:int- The total damage done by the player.
damageTaken:int- The total damage taken by the player.
damagePerRound:float- The average damage per round by the player.
damageDelta:float- The average difference between damage done and damage taken in a round by the player.
firstKills:int- The number of first kills by the player.
firstDeaths:int- The number of first deaths by the player.
firstKillsPerRound:float- The average number of first kills per round by the player.
firstDeathsPerRound:float- The average number of first deaths per round by the player.
firstBloodSuccessRate:float- The success rate of killing the opponent at the first duel in a round by the player.
clutchesWon:int- The number of clutches won by the player.
clutchesLost:int- The number of clutches lost by the player.
clutchWinrate:float- The win rate of clutches by the player.
headshots:int- The number of headshots by the player.
headshotRate:float- The headshot rate of the player.
bodyshots:int- The number of bodyshots by the player.
legshots:int- The number of legshots by the player.
bombPlants:int- The number of bomb plants by the player.
bombDefuses:int- The number of bomb defuses by the player.
trueKills:int- The number of kills by the player where he wasn't killed after 5 seconds.
trueKillsPerRound:float- The average number of kills per round by the player where he wasn't killed after 5 seconds.
trueDeaths:int- The number of deaths by the player where the killer wasn't killed after 5 seconds.
trueDeathsPerRound:float- The average number of deaths per round by the player where the killer wasn't killed after 5 seconds.
trueFirstKills:int- The number of first kills by the player where he wasn't killed after 5 seconds.
trueFirstKillsPerRound:float- The average number of first kills per round by the player where he wasn't killed after 5 seconds.
trueFirstKillPercentage:float- The percentage of first kills by the player where he wasn't killed after 5 seconds.
trueFirstDeaths:int- The number of first deaths by the player where the killer wasn't killed after 5 seconds.
trueFirstDeathsPerRound:float- The average number of first deaths per round by the player where the killer wasn't killed after 5 seconds.
trueFirstDeathPercentage:float- The percentage of first deaths by the player where the killer wasn't killed after 5 seconds.
firstAggressionRate:float- The aggression rate of the player.
rifleVsRifleKills:int- The number of kills with rifles against rifles by the player.
rifleVsRifleDeaths:int- The number of deaths with rifles against rifles by the player.
rifleVsRifleRatio:float- The kill-death ratio with rifles against rifles by the player.
aces:int- The number of aces by the player.
acesPerRound:float- The average number of aces per round by the player.
impact:float- The impact rating of the player (this uses a customized formula for Valorant of the HTLV 2.0 Impact Rating).
rating:float- The overall rating of the player (this uses a customized formula for Valorant of the HTLV 2.0 Rating).
vlrRatingRaw:float- The raw VLR rating of the player.
vlrRating:float- The VLR rating of the player.
spent:int- The amount of money spent by the player.
econRating:float- The economic rating of the player.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Expand source code
class MetricsDto(BaseModel): """ Represents a model for player statistics. Attributes: matches (int): The number of matches played by the player. wins (int): The number of matches won by the player. winrate (float): The win rate of the player. roundsPlayed (int): The number of rounds played by the player. roundsWon (int): The number of rounds won by the player. roundWinrate (float): The round win rate of the player. acs (float): The average combat score of the player. score (int): The score of the player. kills (int): The number of kills by the player. multiKills (int): The number of multi-kills by the player. deaths (int): The number of deaths by the player. assists (int): The number of assists by the player. nonDamagingAssists (int): The number of non-damaging assists by the player. damagingAssists (int): The number of damaging assists by the player. kd (float): The kill-death ratio of the player. kad (float): The kill-assist-death ratio of the player. killsPerRound (float): The average number of kills per round by the player. multiKillsPerRound (float): The average number of multi-kills per round by the player. deathsPerRound (float): The average number of deaths per round by the player. assistsPerRound (float): The average number of assists per round by the player. damagingAssistsPerRound (float): The average number of damaging assists per round by the player. nonDamagingAssistsPerRound (float): The average number of non-damaging assists per round by the player. kastRounds (int): The number of rounds where the player got either a kill, a assist, survived or being traded until 5 seconds after his death. kast (float): The percentage of the rounds where the player got either a kill, a assist, survived or being traded until 5 seconds after his death. tradedRounds (int): The number of rounds where the player got traded within 5 seconds after his death. tradedRatio (float): The ratio of how often the player got traded within 5 seconds after his death. damageDone (int): The total damage done by the player. damageTaken (int): The total damage taken by the player. damagePerRound (float): The average damage per round by the player. damageDelta (float): The average difference between damage done and damage taken in a round by the player. firstKills (int): The number of first kills by the player. firstDeaths (int): The number of first deaths by the player. firstKillsPerRound (float): The average number of first kills per round by the player. firstDeathsPerRound (float): The average number of first deaths per round by the player. firstBloodSuccessRate (float): The success rate of killing the opponent at the first duel in a round by the player. clutchesWon (int): The number of clutches won by the player. clutchesLost (int): The number of clutches lost by the player. clutchWinrate (float): The win rate of clutches by the player. headshots (int): The number of headshots by the player. headshotRate (float): The headshot rate of the player. bodyshots (int): The number of bodyshots by the player. legshots (int): The number of legshots by the player. bombPlants (int): The number of bomb plants by the player. bombDefuses (int): The number of bomb defuses by the player. trueKills (int): The number of kills by the player where he wasn't killed after 5 seconds. trueKillsPerRound (float): The average number of kills per round by the player where he wasn't killed after 5 seconds. trueDeaths (int): The number of deaths by the player where the killer wasn't killed after 5 seconds. trueDeathsPerRound (float): The average number of deaths per round by the player where the killer wasn't killed after 5 seconds. trueFirstKills (int): The number of first kills by the player where he wasn't killed after 5 seconds. trueFirstKillsPerRound (float): The average number of first kills per round by the player where he wasn't killed after 5 seconds. trueFirstKillPercentage (float): The percentage of first kills by the player where he wasn't killed after 5 seconds. trueFirstDeaths (int): The number of first deaths by the player where the killer wasn't killed after 5 seconds. trueFirstDeathsPerRound (float): The average number of first deaths per round by the player where the killer wasn't killed after 5 seconds. trueFirstDeathPercentage (float): The percentage of first deaths by the player where the killer wasn't killed after 5 seconds. firstAggressionRate (float): The aggression rate of the player. rifleVsRifleKills (int): The number of kills with rifles against rifles by the player. rifleVsRifleDeaths (int): The number of deaths with rifles against rifles by the player. rifleVsRifleRatio (float): The kill-death ratio with rifles against rifles by the player. aces (int): The number of aces by the player. acesPerRound (float): The average number of aces per round by the player. impact (float): The impact rating of the player (this uses a customized formula for Valorant of the HTLV 2.0 Impact Rating). rating (float): The overall rating of the player (this uses a customized formula for Valorant of the HTLV 2.0 Rating). vlrRatingRaw (float): The raw VLR rating of the player. vlrRating (float): The VLR rating of the player. spent (int): The amount of money spent by the player. econRating (float): The economic rating of the player. """ matches: int wins: int winrate: float roundsPlayed: int roundsWon: int roundWinrate: float acs: float score: int kills: int multiKills: int deaths: int assists: int nonDamagingAssists: int damagingAssists: int kd: float kad: float killsPerRound: float multiKillsPerRound: float deathsPerRound: float assistsPerRound: float damagingAssistsPerRound: float nonDamagingAssistsPerRound: float kastRounds: int kast: float tradedRounds: int tradedRatio: float damageDone: int damageTaken: int damagePerRound: float damageDelta: float firstKills: int firstDeaths: int firstKillsPerRound: float firstDeathsPerRound: float firstBloodSuccessRate: float clutchesWon: int clutchesLost: int clutchWinrate: float headshots: int headshotRate: float bodyshots: int legshots: int bombPlants: int bombDefuses: int trueKills: int trueKillsPerRound: float trueDeaths: int trueDeathsPerRound: float trueFirstKills: int trueFirstKillsPerRound: float trueFirstKillPercentage: float trueFirstDeaths: int trueFirstDeathsPerRound: float trueFirstDeathPercentage: float firstAggressionRate: float rifleVsRifleKills: int rifleVsRifleDeaths: int rifleVsRifleRatio: float aces: int acesPerRound: float impact: float rating: float vlrRatingRaw: float vlrRating: float spent: int econRating: floatAncestors
- pydantic.main.BaseModel
Class variables
var aces : intvar acesPerRound : floatvar acs : floatvar assists : intvar assistsPerRound : floatvar bodyshots : intvar bombDefuses : intvar bombPlants : intvar clutchWinrate : floatvar clutchesLost : intvar clutchesWon : intvar damageDelta : floatvar damageDone : intvar damagePerRound : floatvar damageTaken : intvar damagingAssists : intvar damagingAssistsPerRound : floatvar deaths : intvar deathsPerRound : floatvar econRating : floatvar firstAggressionRate : floatvar firstBloodSuccessRate : floatvar firstDeaths : intvar firstDeathsPerRound : floatvar firstKills : intvar firstKillsPerRound : floatvar headshotRate : floatvar headshots : intvar impact : floatvar kad : floatvar kast : floatvar kastRounds : intvar kd : floatvar kills : intvar killsPerRound : floatvar legshots : intvar matches : intvar model_computed_fieldsvar model_configvar model_fieldsvar multiKills : intvar multiKillsPerRound : floatvar nonDamagingAssists : intvar nonDamagingAssistsPerRound : floatvar rating : floatvar rifleVsRifleDeaths : intvar rifleVsRifleKills : intvar rifleVsRifleRatio : floatvar roundWinrate : floatvar roundsPlayed : intvar roundsWon : intvar score : intvar spent : intvar tradedRatio : floatvar tradedRounds : intvar trueDeaths : intvar trueDeathsPerRound : floatvar trueFirstDeathPercentage : floatvar trueFirstDeaths : intvar trueFirstDeathsPerRound : floatvar trueFirstKillPercentage : floatvar trueFirstKills : intvar trueFirstKillsPerRound : floatvar trueKills : intvar trueKillsPerRound : floatvar vlrRating : floatvar vlrRatingRaw : floatvar winrate : floatvar wins : int
class PlayerStatsDto (**data: Any)-
Represents the statistics of a player in a game.
Attributes
puuid:str- The unique identifier of the player.
gameName:str- The in-game name of the player.
tagLine:str- The tagline of the player.
side:SideStatsDto- The statistics of the player's side.
map:Dict[str, MapStatsDto]- The statistics of the player on different maps (mapUuid).
agent:Dict[str, AgentStatsDto]- The statistics of the player on different agents (agentUuid).
matchList:List[str]- The list of matches played by the player.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Expand source code
class PlayerStatsDto(BaseModel): """ Represents the statistics of a player in a game. Attributes: puuid (str): The unique identifier of the player. gameName (str): The in-game name of the player. tagLine (str): The tagline of the player. side (SideStatsDto): The statistics of the player's side. map (Dict[str, MapStatsDto]): The statistics of the player on different maps (mapUuid). agent (Dict[str, AgentStatsDto]): The statistics of the player on different agents (agentUuid). matchList (List[str]): The list of matches played by the player. """ puuid: str gameName: str tagLine: str side: SideStatsDto map: Dict[str, MapStatsDto] agent: Dict[str, AgentStatsDto] matchList: List[str]Ancestors
- pydantic.main.BaseModel
Class variables
var agent : Dict[str, AgentStatsDto]var gameName : strvar map : Dict[str, MapStatsDto]var matchList : List[str]var model_computed_fieldsvar model_configvar model_fieldsvar puuid : strvar side : SideStatsDtovar tagLine : str
class SideStatsDto (**data: Any)-
Represents the statistics for a side in a game.
Attributes
Total:MetricsDto- The total metrics for the side.
Attack:MetricsDto- The attack metrics for the side.
Defense:MetricsDto- The defense metrics for the side.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.Expand source code
class SideStatsDto(BaseModel): """ Represents the statistics for a side in a game. Attributes: Total (MetricsDto): The total metrics for the side. Attack (MetricsDto): The attack metrics for the side. Defense (MetricsDto): The defense metrics for the side. """ Total: MetricsDto Attack: MetricsDto Defense: MetricsDtoAncestors
- pydantic.main.BaseModel
Class variables
var Attack : MetricsDtovar Defense : MetricsDtovar Total : MetricsDtovar model_computed_fieldsvar model_configvar model_fields