pyke.models

The models submodule defines structured data representations (models) for Riot API responses.

Each model corresponds to a data object returned by the API — for example, Summoner, Match, Participant, or LeagueEntry — and provides helpful methods for accessing and transforming data.

 1# generated by datamodel-codegen:
 2#   filename:  schema.json
 3#   timestamp: 2025-10-19T17:24:31+00:00
 4
 5"""
 6The **models** submodule defines structured data representations (models) for Riot API responses.
 7
 8Each model corresponds to a data object returned by the API — for example, Summoner, Match, Participant, or LeagueEntry — and provides helpful methods for accessing and transforming data.
 9"""
10
11from __future__ import annotations
12
13from typing import Optional
14
15from pydantic import BaseModel
16
17
18class Status(BaseModel):
19    """@private"""
20
21    status_code: Optional[int] = None
22    message: Optional[str] = None
23
24
25class Error(BaseModel):
26    """@private"""
27
28    status: Optional[Status] = None