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.

self is explicitly positional-only to allow self as 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: SideStatsDto

Ancestors

  • pydantic.main.BaseModel

Class variables

var agent : str
var model_computed_fields
var model_config
var model_fields
var sideSideStatsDto
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.

self is explicitly positional-only to allow self as 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: SideStatsDto

Ancestors

  • pydantic.main.BaseModel

Class variables

var map : str
var model_computed_fields
var model_config
var model_fields
var sideSideStatsDto
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.

self is explicitly positional-only to allow self as 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: float

Ancestors

  • pydantic.main.BaseModel

Class variables

var aces : int
var acesPerRound : float
var acs : float
var assists : int
var assistsPerRound : float
var bodyshots : int
var bombDefuses : int
var bombPlants : int
var clutchWinrate : float
var clutchesLost : int
var clutchesWon : int
var damageDelta : float
var damageDone : int
var damagePerRound : float
var damageTaken : int
var damagingAssists : int
var damagingAssistsPerRound : float
var deaths : int
var deathsPerRound : float
var econRating : float
var firstAggressionRate : float
var firstBloodSuccessRate : float
var firstDeaths : int
var firstDeathsPerRound : float
var firstKills : int
var firstKillsPerRound : float
var headshotRate : float
var headshots : int
var impact : float
var kad : float
var kast : float
var kastRounds : int
var kd : float
var kills : int
var killsPerRound : float
var legshots : int
var matches : int
var model_computed_fields
var model_config
var model_fields
var multiKills : int
var multiKillsPerRound : float
var nonDamagingAssists : int
var nonDamagingAssistsPerRound : float
var rating : float
var rifleVsRifleDeaths : int
var rifleVsRifleKills : int
var rifleVsRifleRatio : float
var roundWinrate : float
var roundsPlayed : int
var roundsWon : int
var score : int
var spent : int
var tradedRatio : float
var tradedRounds : int
var trueDeaths : int
var trueDeathsPerRound : float
var trueFirstDeathPercentage : float
var trueFirstDeaths : int
var trueFirstDeathsPerRound : float
var trueFirstKillPercentage : float
var trueFirstKills : int
var trueFirstKillsPerRound : float
var trueKills : int
var trueKillsPerRound : float
var vlrRating : float
var vlrRatingRaw : float
var winrate : float
var 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.

self is explicitly positional-only to allow self as 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 : str
var map : Dict[str, MapStatsDto]
var matchList : List[str]
var model_computed_fields
var model_config
var model_fields
var puuid : str
var sideSideStatsDto
var 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.

self is explicitly positional-only to allow self as 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: MetricsDto

Ancestors

  • pydantic.main.BaseModel

Class variables

var AttackMetricsDto
var DefenseMetricsDto
var TotalMetricsDto
var model_computed_fields
var model_config
var model_fields