Enums

Enumeration types used throughout the library.

class valopy.enums.AllowedMethods(*values)[source]

Bases: Enum

Allowed HTTP methods.

Members

GETstr

HTTP GET method.

POSTstr

HTTP POST method.

GET = 'GET'
POST = 'POST'
class valopy.enums.Endpoint(url, model_class)[source]

Bases: Enum

API endpoints with associated response models.

Contains all available and implemented Valorant API endpoints organized by category, with references to their corresponding dataclass models for automatic deserialization.

ACCOUNT_BY_NAME_V1 = ('/v1/account/{name}/{tag}', <class 'valopy.models.AccountV1'>)
ACCOUNT_BY_NAME_V2 = ('/v2/account/{name}/{tag}', <class 'valopy.models.AccountV2'>)
ACCOUNT_BY_PUUID_V1 = ('/v1/by-puuid/account/{puuid}', <class 'valopy.models.AccountV1'>)
ACCOUNT_BY_PUUID_V2 = ('/v2/by-puuid/account/{puuid}', <class 'valopy.models.AccountV2'>)
CONTENT_V1 = ('/v1/content', <class 'valopy.models.Content'>)
VERSION_V1 = ('/v1/version/{region}', <class 'valopy.models.Version'>)
class valopy.enums.GameMode(*values)[source]

Bases: str, Enum

Available game modes.

Members

COMPETITIVEstr

Ranked competitive mode

UNRATEDstr

Unrated practice mode

SPIKERUSHstr

Spike Rush mode

DEATHMATCHstr

Deathmatch mode

ESCALATIONstr

Escalation mode

REPLICATIONstr

Replication mode

SNOWBALLstr

Snowball mode

CUSTOMstr

Custom game

SWIFTPLAYstr

Swift Play mode

PREMIERstr

Premier mode

COMPETITIVE = 'competitive'
CUSTOM = 'custom'
DEATHMATCH = 'deathmatch'
ESCALATION = 'escalation'
PREMIER = 'premier'
REPLICATION = 'replication'
SNOWBALL = 'snowball'
SPIKERUSH = 'spikerush'
SWIFTPLAY = 'swiftplay'
UNRATED = 'unrated'
class valopy.enums.HttpStatus(*values)[source]

Bases: int, Enum

HTTP status codes.

Members

OKint

200 OK

BAD_REQUESTint

400 Bad Request

FORBIDDENint

403 Forbidden

NOT_FOUNDint

404 Not Found

REQUEST_TIMEOUTint

408 Request Timeout

TOO_MANY_REQUESTSint

429 Too Many Requests

NOT_IMPLEMENTEDint

501 Not Implemented

SERVICE_UNAVAILABLEint

503 Service Unavailable

BAD_REQUEST = 400
FORBIDDEN = 403
NOT_FOUND = 404
NOT_IMPLEMENTED = 501
OK = 200
REQUEST_TIMEOUT = 408
SERVICE_UNAVAILABLE = 503
TOO_MANY_REQUESTS = 429
class valopy.enums.Locale(*values)[source]

Bases: str, Enum

Supported locale codes for internationalization.

Members

AR_AEstr

Arabic (United Arab Emirates)

DE_DEstr

German (Germany)

EN_GBstr

English (Great Britain)

EN_USstr

English (United States)

ES_ESstr

Spanish (Spain)

ES_MXstr

Spanish (Mexico)

FR_FRstr

French (France)

ID_IDstr

Indonesian (Indonesia)

IT_ITstr

Italian (Italy)

JA_JPstr

Japanese (Japan)

KO_KRstr

Korean (South Korea)

PL_PLstr

Polish (Poland)

PT_BRstr

Portuguese (Brazil)

RU_RUstr

Russian (Russia)

TH_THstr

Thai (Thailand)

TR_TRstr

Turkish (Turkey)

VI_VNstr

Vietnamese (Vietnam)

ZH_CNstr

Chinese Simplified (China)

ZH_TWstr

Chinese Traditional (Taiwan)

AR_AE = 'ar-AE'
DE_DE = 'de-DE'
EN_GB = 'en-GB'
EN_US = 'en-US'
ES_ES = 'es-ES'
ES_MX = 'es-MX'
FR_FR = 'fr-FR'
ID_ID = 'id-ID'
IT_IT = 'it-IT'
JA_JP = 'ja-JP'
KO_KR = 'ko-KR'
PL_PL = 'pl-PL'
PT_BR = 'pt-BR'
RU_RU = 'ru-RU'
TH_TH = 'th-TH'
TR_TR = 'tr-TR'
VI_VN = 'vi-VN'
ZH_CN = 'zh-CN'
ZH_TW = 'zh-TW'
class valopy.enums.Platform(*values)[source]

Bases: str, Enum

Available platforms.

Members

PCstr

Personal Computer

CONSOLEstr

Console

CONSOLE = 'console'
PC = 'pc'
class valopy.enums.Region(*values)[source]

Bases: str, Enum

Available regions.

Members

EUstr

Europe

NAstr

North America

LATAMstr

Latin America

BRstr

Brazil

APstr

Asia Pacific

KRstr

Korea

AP = 'ap'
BR = 'br'
EU = 'eu'
KR = 'kr'
LATAM = 'latam'
NA = 'na'
class valopy.enums.Season(*values)[source]

Bases: str, Enum

Available Valorant seasons.

Members

E1A1str

Episode 1 Act 1

E1A2str

Episode 1 Act 2

E1A3str

Episode 1 Act 3

(and more through E9A3)

E1A1 = 'e1a1'
E1A2 = 'e1a2'
E1A3 = 'e1a3'
E2A1 = 'e2a1'
E2A2 = 'e2a2'
E2A3 = 'e2a3'
E3A1 = 'e3a1'
E3A2 = 'e3a2'
E3A3 = 'e3a3'
E4A1 = 'e4a1'
E4A2 = 'e4a2'
E4A3 = 'e4a3'
E5A1 = 'e5a1'
E5A2 = 'e5a2'
E5A3 = 'e5a3'
E6A1 = 'e6a1'
E6A2 = 'e6a2'
E6A3 = 'e6a3'
E7A1 = 'e7a1'
E7A2 = 'e7a2'
E7A3 = 'e7a3'
E8A1 = 'e8a1'
E8A2 = 'e8a2'
E8A3 = 'e8a3'
E9A1 = 'e9a1'
E9A2 = 'e9a2'
E9A3 = 'e9a3'