Models
Data models returned by API methods. All models are dataclasses with full type hints.
Response
- class valopy.models.Result(status_code, message='None', data=<factory>)[source]
Bases:
objectHTTP request result wrapper.
- data
The response data (dict or deserialized dataclass).
- Type:
Any
Account
- class valopy.models.AccountV1(puuid, region, account_level, name, tag, card, last_update, last_update_raw)[source]
Bases:
objectAccount V1 information.
- last_update
Last update timestamp. Note: This is an approximation calculated from relative time strings (e.g., “3 minutes ago”) returned by the API, so accuracy may vary by seconds/minutes.
- Type:
Content
- class valopy.models.Content(version, characters=<factory>, maps=<factory>, chromas=<factory>, skins=<factory>, skinLevels=<factory>, equips=<factory>, gameModes=<factory>, sprays=<factory>, sprayLevels=<factory>, charms=<factory>, charmLevels=<factory>, playerCards=<factory>, playerTitles=<factory>, acts=<factory>, ceremonies=<factory>)[source]
Bases:
objectIn-game content data.
- characters
Available characters.
- Type:
List[
ContentCharacter]
- maps
Available maps.
- Type:
List[
ContentMap]
- chromas
Available chromas.
- Type:
List[
ContentItem]
- skins
Available skins.
- Type:
List[
ContentItem]
- skin_levels
Available skin levels.
- Type:
List[
ContentItem]
- equips
Available equips.
- Type:
List[
ContentItem]
- game_modes
Available game modes.
- Type:
List[
ContentItem]
- sprays
Available sprays.
- Type:
List[
ContentItem]
- spray_levels
Available spray levels.
- Type:
List[
ContentItem]
- charms
Available charms.
- Type:
List[
ContentItem]
- charm_levels
Available charm levels.
- Type:
List[
ContentItem]
- player_cards
Available player cards.
- Type:
List[
ContentItem]
- player_titles
Available player titles.
- Type:
List[
ContentPlayerTitle]
- acts
Available acts.
- Type:
List[
ContentAct]
- ceremonies
Available ceremonies.
- Type:
List[
ContentItem]
- class valopy.models.ContentItem(name, id, assetName='', assetPath='', localizedNames=<factory>)[source]
Bases:
objectGeneric content item structure.
- class valopy.models.ContentCharacter(name, id, assetName='', localizedNames=<factory>, isPlayableCharacter=False)[source]
Bases:
objectContent character structure.
- class valopy.models.ContentMap(name, id, assetName='', assetPath='', localizedNames=<factory>)[source]
Bases:
objectContent map structure.
Version
Website
Status
- class valopy.models.Status(maintenances=<factory>, incidents=<factory>)[source]
Bases:
objectServer status response.
- maintenances
List of current maintenance announcements.
- Type:
List[
StatusEntry]
- incidents
List of current incidents.
- Type:
List[
StatusEntry]
- class valopy.models.StatusEntry(created_at, archive_at, updates=<factory>, platforms=<factory>, updated_at=datetime.datetime(1970, 1, 1, 0, 0, tzinfo=datetime.timezone.utc), id=0, titles=<factory>, maintenance_status='', incident_severity='')[source]
Bases:
objectStatus entry for maintenance or incident.
- created_at
When the entry was created.
- Type:
- archive_at
When the entry will be archived.
- Type:
- updates
List of status updates.
- Type:
List[
StatusUpdate]
- updated_at
When the entry was last modified.
- Type:
- titles
Titles for the entry.
- Type:
List[
StatusTitle]
- class valopy.models.StatusUpdate(created_at, updated_at, publish, id, translations=<factory>, publish_locations=<factory>, author='')[source]
Bases:
objectIndividual status update entry.
- created_at
When the update was created.
- Type:
- updated_at
When the update was last modified.
- Type:
- translations
Translated content messages.
- Type:
List[
StatusTranslation]
Queue
- class valopy.models.QueueData(mode, mode_id, enabled, team_size, number_of_teams, party_size, high_skill, ranked, tournament, skill_disparity, required_account_level, game_rules, platforms=<factory>, maps=<factory>)[source]
Bases:
objectIndividual queue configuration.
- party_size
Party size constraints.
- Type:
- high_skill
High skill tier restrictions.
- Type:
- skill_disparity
Skill disparity restrictions by tier.
- Type:
List[
QueueSkillDisparity]
- game_rules
Game rules configuration.
- Type:
- class valopy.models.QueuePartySize(max, min, invalid=<factory>, full_party_bypass=False)[source]
Bases:
objectParty size constraints for a queue.
- class valopy.models.QueueHighSkill(max_party_size, min_tier, max_tier)[source]
Bases:
objectHigh skill tier restrictions for a queue.
- class valopy.models.QueueSkillDisparity(tier, name, max_tier)[source]
Bases:
objectSkill disparity restrictions for a queue.
- max_tier
Maximum tier allowed to queue with this tier.
- Type:
- class valopy.models.QueueSkillDisparityTier(id, name)[source]
Bases:
objectTier information for skill disparity.
- class valopy.models.QueueGameRules(overtime_win_by_two=False, allow_lenient_surrender=False, allow_drop_out=False, assign_random_agents=False, skip_pregame=False, allow_overtime_draw_vote=False, overtime_win_by_two_capped=False, premier_mode=False)[source]
Bases:
objectGame rules configuration for a queue.
Esports
- class valopy.models.EsportsEvent(date, state, type, vod, league, tournament, match)[source]
Bases:
objectEsports event data.
- date
Event date (ISO 8601 format).
- Type:
- league
League information.
- Type:
- tournament
Tournament information.
- Type:
- match
Match information.
- Type:
- class valopy.models.EsportsMatch(id, game_type, teams)[source]
Bases:
objectEsports match information.
- game_type
Game type configuration.
- Type:
- teams
List of teams in the match.
- Type:
List[
EsportsTeam]
- class valopy.models.EsportsTeam(name, code, icon, has_won, game_wins, record)[source]
Bases:
objectEsports team information.
- record
Team’s win/loss record.
- Type:
- class valopy.models.EsportsGameType(type, count)[source]
Bases:
objectEsports game type configuration.
Leaderboard
- class valopy.models.Leaderboard(results, updated_at=datetime.datetime(1970, 1, 1, 0, 0, tzinfo=datetime.timezone.utc), thresholds=<factory>, players=<factory>)[source]
Bases:
objectLeaderboard response.
- results
Pagination metadata (total, returned, before, after).
- Type:
- updated_at
When the leaderboard was last updated.
- Type:
- thresholds
Tier threshold information.
- Type:
List[
LeaderboardThreshold]
- players
List of leaderboard players.
- Type:
List[
LeaderboardPlayer]
- class valopy.models.LeaderboardPlayer(puuid, name, tag, card, title, is_banned, is_anonymized, leaderboard_rank, tier, rr, wins, updated_at)[source]
Bases:
objectLeaderboard player entry.
- updated_at
Last update timestamp.
- Type: