Using Cassiopeia¶
Objects that hold data from the Riot API can be created using two different interfaces. The top-level cassiopeia module contains methods to query for objects using method calls, as well as class constructors to create objects directly.
Example usage of the two interfaces:
import cassiopeia as cass
a_summoner = cass.get_summoner(puuid="...", region="NA")
from cassiopeia import Summoner
a_summoner = Summoner(puuid="...", region="NA")
Also note that many types can be pulled from Summoner objects. This is the preferred way to interact with these types. They are listed below:
from cassiopeia import Summoner
a_summoner = Summoner(puuid="...", region="NA")
a_summoner.champion_masteries
a_summoner.match_history
a_summoner.current_match
a_summoner.leagues
Methods and Class Constructors¶
See the links below for the method and class names for each type.
- Settings
- Data and Enums
ContinentDivisionGameModeGameMode.all_random_summoners_riftGameMode.all_random_urf_snowGameMode.aramGameMode.ascensionGameMode.assassinateGameMode.cherryGameMode.classicGameMode.dark_starGameMode.dominionGameMode.doom_botsGameMode.nexus_blitzGameMode.nexus_siegeGameMode.odysseyGameMode.one_for_allGameMode.overchargeGameMode.poro_kingGameMode.practice_toolGameMode.projectGameMode.showdownGameMode.star_guardianGameMode.tutorialGameMode.tutorial_1GameMode.tutorial_2GameMode.tutorial_3GameMode.urfGameMode.utlbookGameMode.wipmode
GameTypeKeyLaneMasteryTreeMatchTypePlatformPlatform.brazilPlatform.continentPlatform.default_localePlatform.europe_north_eastPlatform.europe_westPlatform.from_region()Platform.japanPlatform.koreaPlatform.latin_america_northPlatform.latin_america_southPlatform.north_americaPlatform.oceaniaPlatform.philippinesPlatform.regionPlatform.russiaPlatform.singaporePlatform.taiwanPlatform.thailandPlatform.turkeyPlatform.vietnam
PositionQueueQueue.all_random_summoners_riftQueue.all_random_urfQueue.all_random_urf_snowQueue.aramQueue.aram_butchers_bridgeQueue.arenaQueue.ascensionQueue.black_market_brawlersQueue.blind_fivesQueue.blind_threesQueue.blood_hunt_assassinQueue.clashQueue.coop_ai_beginner_fivesQueue.coop_ai_beginner_threesQueue.coop_ai_intermediate_fivesQueue.coop_ai_intermediate_threesQueue.coop_ai_intro_fivesQueue.coop_ai_intro_threesQueue.customQueue.dark_starQueue.definitely_not_dominionQueue.deprecated_all_random_urfQueue.deprecated_aramQueue.deprecated_blind_dominionQueue.deprecated_blind_fivesQueue.deprecated_blind_threesQueue.deprecated_coop_ai_beginner_fivesQueue.deprecated_coop_ai_dominionQueue.deprecated_coop_ai_fivesQueue.deprecated_coop_ai_intermediate_fivesQueue.deprecated_coop_ai_intro_fivesQueue.deprecated_coop_ai_threesQueue.deprecated_doom_bots_rank_1Queue.deprecated_doom_bots_rank_2Queue.deprecated_doom_bots_rank_5Queue.deprecated_draft_dominionQueue.deprecated_draft_fivesQueue.deprecated_nexus_blitzQueue.deprecated_nexus_siegeQueue.deprecated_poro_kingQueue.deprecated_ranked_fivesQueue.deprecated_ranked_flex_threesQueue.deprecated_ranked_premade_fivesQueue.deprecated_ranked_premade_threesQueue.deprecated_ranked_solo_fivesQueue.deprecated_ranked_team_fivesQueue.deprecated_ranked_team_threesQueue.deprecated_team_builder_fivesQueue.doom_botsQueue.doom_bots_difficultQueue.from_id()Queue.guardian_invasion_normalQueue.guardian_invasion_onslaughtQueue.hexakill_summoners_riftQueue.hexakill_twisted_treelineQueue.idQueue.mirror_mode_fivesQueue.nemesis_draftQueue.nexus_blitzQueue.nexus_siegeQueue.normal_draft_fivesQueue.normal_tftQueue.odyssey_cadetQueue.odyssey_captainQueue.odyssey_crewmemberQueue.odyssey_introQueue.odyssey_onslaughtQueue.one_for_allQueue.one_for_all_rapidQueue.overchargeQueue.pick_urf_gamesQueue.poro_kingQueue.projectQueue.ranked_flex_fivesQueue.ranked_flex_threesQueue.ranked_solo_fivesQueue.ranked_tftQueue.ranked_tft_double_upQueue.ranked_tft_pairsQueue.rings_of_wrathQueue.showdown_1v1Queue.showdown_2v2Queue.tutorial1Queue.tutorial2Queue.tutorial3Queue.ultimate_spellbookQueue.urfQueue.urf_coop_ai
RankRegionRegion.brazilRegion.continentRegion.default_localeRegion.europe_north_eastRegion.europe_westRegion.from_platform()Region.japanRegion.koreaRegion.latin_america_northRegion.latin_america_southRegion.north_americaRegion.oceaniaRegion.philippinesRegion.platformRegion.russiaRegion.singaporeRegion.taiwanRegion.thailandRegion.timezoneRegion.turkeyRegion.vietnam
ResourceRoleSideSummonersRiftAreaSummonersRiftArea.bot_lane_blueSummonersRiftArea.bot_lane_purpleSummonersRiftArea.bot_lane_redSummonersRiftArea.from_position()SummonersRiftArea.get_lane()SummonersRiftArea.get_side()SummonersRiftArea.jungle_bot_blueSummonersRiftArea.jungle_bot_redSummonersRiftArea.jungle_top_blueSummonersRiftArea.jungle_top_redSummonersRiftArea.mid_lane_blueSummonersRiftArea.mid_lane_purpleSummonersRiftArea.mid_lane_redSummonersRiftArea.nexus_blueSummonersRiftArea.nexus_redSummonersRiftArea.noneSummonersRiftArea.river_botSummonersRiftArea.river_topSummonersRiftArea.top_lane_blueSummonersRiftArea.top_lane_purpleSummonersRiftArea.top_lane_red
TierTower
- Champions
cassiopeia.get_champions()cassiopeia.get_champion()ChampionsChampions.append()Champions.clear()Champions.contains()Champions.copy()Champions.count()Champions.delete()Champions.enumerate()Champions.extend()Champions.filter()Champions.find()Champions.from_data()Champions.from_generator()Champions.included_dataChampions.index()Champions.insert()Champions.localeChampions.platformChampions.pop()Champions.regionChampions.remove()Champions.reverse()Champions.search()Champions.sort()Champions.to_dict()Champions.to_json()Champions.version
ChampionChampion.ally_tipsChampion.ban_ratesChampion.blurbChampion.enemy_tipsChampion.free_to_playChampion.free_to_play_new_playersChampion.idChampion.imageChampion.included_dataChampion.infoChampion.keyChampion.load()Champion.localeChampion.loreChampion.nameChampion.passiveChampion.platformChampion.play_ratesChampion.recommended_itemsetsChampion.regionChampion.release_dateChampion.resourceChampion.skinsChampion.spellsChampion.spriteChampion.statsChampion.tagsChampion.titleChampion.versionChampion.win_rates
InfoStatsStats.armorStats.armor_per_levelStats.attack_damageStats.attack_damage_per_levelStats.attack_rangeStats.attack_speedStats.critical_strike_chanceStats.critical_strike_chance_per_levelStats.healthStats.health_per_levelStats.health_regenStats.health_regen_per_levelStats.magic_resistStats.magic_resist_per_levelStats.manaStats.mana_per_levelStats.mana_regenStats.mana_regen_per_levelStats.movespeedStats.percent_attack_speed_per_level
SkinPassiveRecommendedItemsItemSetChampionSpellChampionSpell.alternative_imagesChampionSpell.cooldownsChampionSpell.costsChampionSpell.descriptionChampionSpell.effectsChampionSpell.effects_by_levelChampionSpell.image_infoChampionSpell.keyChampionSpell.keyboard_keyChampionSpell.keywordsChampionSpell.max_rankChampionSpell.nameChampionSpell.rangeChampionSpell.resourceChampionSpell.sanitized_descriptionChampionSpell.sanitized_tooltipChampionSpell.tooltipChampionSpell.variables
SpellVars
- Champion Masteries
cassiopeia.get_champion_mastery()cassiopeia.get_champion_masteries()ChampionMasteriesChampionMasteries.append()ChampionMasteries.clear()ChampionMasteries.contains()ChampionMasteries.copy()ChampionMasteries.count()ChampionMasteries.delete()ChampionMasteries.enumerate()ChampionMasteries.extend()ChampionMasteries.filter()ChampionMasteries.find()ChampionMasteries.from_data()ChampionMasteries.from_generator()ChampionMasteries.index()ChampionMasteries.insert()ChampionMasteries.platformChampionMasteries.pop()ChampionMasteries.regionChampionMasteries.remove()ChampionMasteries.reverse()ChampionMasteries.search()ChampionMasteries.sort()ChampionMasteries.summonerChampionMasteries.to_dict()ChampionMasteries.to_json()
ChampionMasteryChampionMastery.championChampionMastery.chest_grantedChampionMastery.last_playedChampionMastery.levelChampionMastery.platformChampionMastery.pointsChampionMastery.points_since_last_levelChampionMastery.points_until_next_levelChampionMastery.regionChampionMastery.summonerChampionMastery.tokens
- Items
cassiopeia.get_items()ItemsItems.append()Items.clear()Items.contains()Items.copy()Items.count()Items.delete()Items.enumerate()Items.extend()Items.filter()Items.find()Items.from_data()Items.from_generator()Items.included_dataItems.index()Items.insert()Items.localeItems.platformItems.pop()Items.regionItems.remove()Items.reverse()Items.search()Items.sort()Items.to_dict()Items.to_json()Items.version
ItemItem.builds_fromItem.builds_intoItem.championItem.consume_on_fullItem.consumedItem.descriptionItem.effectItem.goldItem.groupItem.hideItem.idItem.imageItem.in_storeItem.included_dataItem.keywordsItem.localeItem.mapsItem.max_stacksItem.nameItem.plaintextItem.platformItem.regionItem.sanitized_descriptionItem.special_recipeItem.spriteItem.statsItem.tagsItem.tierItem.version
ItemStatsItemStats.ability_powerItemStats.armorItemStats.attack_damageItemStats.attack_speedItemStats.blockItemStats.critical_strike_chanceItemStats.critical_strike_damageItemStats.dodgeItemStats.energyItemStats.energy_regenItemStats.healthItemStats.health_regenItemStats.life_stealItemStats.magic_resistItemStats.manaItemStats.mana_regenItemStats.movespeedItemStats.percent_ability_powerItemStats.percent_armorItemStats.percent_attack_damageItemStats.percent_attack_speedItemStats.percent_blockItemStats.percent_critical_strike_damageItemStats.percent_healthItemStats.percent_health_regenItemStats.percent_magic_resistItemStats.percent_mana_regenItemStats.percent_movespeedItemStats.percent_xp_bonusItemStats.spell_vampItemStats.xp_bonus
- Language Strings
- Leagues
cassiopeia.Summoner.leaguescassiopeia.get_challenger_league()cassiopeia.get_master_league()LeagueChallengerLeagueMasterLeagueLeagueSummonerEntriesLeagueSummonerEntries.append()LeagueSummonerEntries.clear()LeagueSummonerEntries.contains()LeagueSummonerEntries.copy()LeagueSummonerEntries.count()LeagueSummonerEntries.delete()LeagueSummonerEntries.enumerate()LeagueSummonerEntries.extend()LeagueSummonerEntries.filter()LeagueSummonerEntries.find()LeagueSummonerEntries.fivesLeagueSummonerEntries.flexLeagueSummonerEntries.from_data()LeagueSummonerEntries.from_generator()LeagueSummonerEntries.index()LeagueSummonerEntries.insert()LeagueSummonerEntries.platformLeagueSummonerEntries.pop()LeagueSummonerEntries.regionLeagueSummonerEntries.remove()LeagueSummonerEntries.reverse()LeagueSummonerEntries.search()LeagueSummonerEntries.sort()LeagueSummonerEntries.threesLeagueSummonerEntries.to_dict()LeagueSummonerEntries.to_json()
MiniSeriesLeagueEntriesLeagueEntries.append()LeagueEntries.clear()LeagueEntries.contains()LeagueEntries.copy()LeagueEntries.count()LeagueEntries.delete()LeagueEntries.divisionLeagueEntries.enumerate()LeagueEntries.extend()LeagueEntries.filter()LeagueEntries.find()LeagueEntries.from_data()LeagueEntries.from_generator()LeagueEntries.index()LeagueEntries.insert()LeagueEntries.platformLeagueEntries.pop()LeagueEntries.queueLeagueEntries.regionLeagueEntries.remove()LeagueEntries.reverse()LeagueEntries.search()LeagueEntries.sort()LeagueEntries.tierLeagueEntries.to_dict()LeagueEntries.to_json()
LeagueEntryLeagueEntry.divisionLeagueEntry.fresh_bloodLeagueEntry.from_data()LeagueEntry.hot_streakLeagueEntry.inactiveLeagueEntry.leagueLeagueEntry.league_pointsLeagueEntry.lossesLeagueEntry.platformLeagueEntry.promosLeagueEntry.queueLeagueEntry.regionLeagueEntry.roleLeagueEntry.summonerLeagueEntry.tierLeagueEntry.veteranLeagueEntry.wins
- Locales
cassiopeia.get_locales()LocalesLocales.append()Locales.clear()Locales.contains()Locales.copy()Locales.count()Locales.delete()Locales.enumerate()Locales.extend()Locales.filter()Locales.find()Locales.from_data()Locales.from_generator()Locales.index()Locales.insert()Locales.platformLocales.pop()Locales.regionLocales.remove()Locales.reverse()Locales.search()Locales.sort()Locales.to_dict()Locales.to_json()
- Maps
cassiopeia.get_maps()MapsMaps.append()Maps.clear()Maps.contains()Maps.copy()Maps.count()Maps.delete()Maps.enumerate()Maps.extend()Maps.filter()Maps.find()Maps.from_data()Maps.from_generator()Maps.index()Maps.insert()Maps.localeMaps.platformMaps.pop()Maps.regionMaps.remove()Maps.reverse()Maps.search()Maps.sort()Maps.to_dict()Maps.to_json()Maps.version
Map
- Matches
cassiopeia.Summoner.match_historycassiopeia.get_match_history()cassiopeia.get_match()MatchHistoryMatchHistory.append()MatchHistory.clear()MatchHistory.contains()MatchHistory.continent()MatchHistory.copy()MatchHistory.countMatchHistory.delete()MatchHistory.end_timeMatchHistory.enumerate()MatchHistory.extend()MatchHistory.filter()MatchHistory.find()MatchHistory.from_data()MatchHistory.from_generator()MatchHistory.index()MatchHistory.insert()MatchHistory.match_type()MatchHistory.pop()MatchHistory.queue()MatchHistory.remove()MatchHistory.reverse()MatchHistory.search()MatchHistory.sort()MatchHistory.startMatchHistory.start_timeMatchHistory.to_dict()MatchHistory.to_json()
MatchMatch.blue_teamMatch.continentMatch.creationMatch.durationMatch.existsMatch.from_match_reference()Match.game_typeMatch.idMatch.is_remakeMatch.kills_heatmap()Match.mapMatch.modeMatch.participantsMatch.patchMatch.platformMatch.queueMatch.red_teamMatch.regionMatch.startMatch.teamsMatch.timelineMatch.typeMatch.version
TeamParticipantParticipant.championParticipant.cumulative_timelineParticipant.ended_in_early_surrenderParticipant.enemy_teamParticipant.from_data()Participant.idParticipant.individual_positionParticipant.is_botParticipant.laneParticipant.roleParticipant.runesParticipant.sideParticipant.skill_orderParticipant.stat_runesParticipant.statsParticipant.summonerParticipant.summoner_nameParticipant.summoner_spell_dParticipant.summoner_spell_fParticipant.teamParticipant.team_positionParticipant.timelineParticipant.version
ParticipantStatsParticipantStats.assistsParticipantStats.baron_killsParticipantStats.bounty_levelParticipantStats.champion_experienceParticipantStats.champion_transformParticipantStats.consumables_purchasedParticipantStats.damage_dealt_to_buildingsParticipantStats.damage_dealt_to_objectivesParticipantStats.damage_dealt_to_turretsParticipantStats.damage_self_mitigatedParticipantStats.deathsParticipantStats.double_killsParticipantStats.dragon_killsParticipantStats.first_blood_assistParticipantStats.first_blood_killParticipantStats.first_tower_assistParticipantStats.first_tower_killParticipantStats.from_data()ParticipantStats.gold_earnedParticipantStats.gold_spentParticipantStats.inhibitor_killsParticipantStats.inhibitor_takedownsParticipantStats.inhibitors_lostParticipantStats.itemsParticipantStats.items_purchasedParticipantStats.kdaParticipantStats.killing_spreesParticipantStats.killsParticipantStats.largest_critical_strikeParticipantStats.largest_killing_spreeParticipantStats.largest_multi_killParticipantStats.levelParticipantStats.longest_time_spent_livingParticipantStats.magic_damage_dealtParticipantStats.magic_damage_dealt_to_championsParticipantStats.magic_damage_takenParticipantStats.neutral_minions_killedParticipantStats.nexus_killsParticipantStats.nexus_lostParticipantStats.nexus_takedownsParticipantStats.objectives_stolenParticipantStats.objectives_stolen_assistsParticipantStats.penta_killsParticipantStats.physical_damage_dealtParticipantStats.physical_damage_dealt_to_championsParticipantStats.physical_damage_takenParticipantStats.quadra_killsParticipantStats.sight_wards_boughtParticipantStats.spell_1_castsParticipantStats.spell_2_castsParticipantStats.spell_3_castsParticipantStats.spell_4_castsParticipantStats.summoner_spell_1_castsParticipantStats.summoner_spell_2_castsParticipantStats.time_CCing_othersParticipantStats.time_playedParticipantStats.total_damage_dealtParticipantStats.total_damage_dealt_to_championsParticipantStats.total_damage_shielded_on_teammatesParticipantStats.total_damage_takenParticipantStats.total_healParticipantStats.total_heals_on_teammatesParticipantStats.total_minions_killedParticipantStats.total_time_cc_dealtParticipantStats.total_time_spent_deadParticipantStats.total_units_healedParticipantStats.triple_killsParticipantStats.true_damage_dealtParticipantStats.true_damage_dealt_to_championsParticipantStats.true_damage_takenParticipantStats.turret_killsParticipantStats.turret_takedownsParticipantStats.turrets_lostParticipantStats.unreal_killsParticipantStats.vision_scoreParticipantStats.vision_wards_boughtParticipantStats.vision_wards_placedParticipantStats.wards_killedParticipantStats.wards_placedParticipantStats.win
ParticipantTimelineTimelineFrameParticipantFrameEventEvent.after_idEvent.ascended_typeEvent.assisting_participantsEvent.before_idEvent.building_typeEvent.captured_pointEvent.creator_idEvent.item_idEvent.killer_idEvent.lane_typeEvent.level_up_typeEvent.monster_sub_typeEvent.monster_typeEvent.participant_idEvent.positionEvent.sideEvent.skillEvent.timestampEvent.tower_typeEvent.typeEvent.victim_idEvent.ward_type
PositionCumulativeTimelineParticipantStateParticipantState.assistsParticipantState.creep_scoreParticipantState.current_goldParticipantState.deathsParticipantState.dominion_scoreParticipantState.experienceParticipantState.gold_earnedParticipantState.itemsParticipantState.kdaParticipantState.killsParticipantState.levelParticipantState.neutral_minions_killedParticipantState.objectivesParticipantState.positionParticipantState.skillsParticipantState.team_score
- Patch
- Profile Icons
cassiopeia.Summoner.profile_iconcassiopeia.get_profile_icons()ProfileIconsProfileIcons.append()ProfileIcons.clear()ProfileIcons.contains()ProfileIcons.copy()ProfileIcons.count()ProfileIcons.delete()ProfileIcons.enumerate()ProfileIcons.extend()ProfileIcons.filter()ProfileIcons.find()ProfileIcons.from_data()ProfileIcons.from_generator()ProfileIcons.index()ProfileIcons.insert()ProfileIcons.localeProfileIcons.platformProfileIcons.pop()ProfileIcons.regionProfileIcons.remove()ProfileIcons.reverse()ProfileIcons.search()ProfileIcons.sort()ProfileIcons.to_dict()ProfileIcons.to_json()ProfileIcons.version
ProfileIcon
- Realms
- Runes
cassiopeia.get_runes()RunesRunes.append()Runes.clear()Runes.contains()Runes.copy()Runes.count()Runes.delete()Runes.dominationRunes.enumerate()Runes.extend()Runes.filter()Runes.find()Runes.from_data()Runes.from_generator()Runes.included_dataRunes.index()Runes.insert()Runes.inspirationRunes.keystonesRunes.localeRunes.platformRunes.pop()Runes.precisionRunes.regionRunes.remove()Runes.resolveRunes.reverse()Runes.search()Runes.sorceryRunes.sort()Runes.to_dict()Runes.to_json()Runes.version
Rune
- Status
- Spectator
cassiopeia.Summoner.current_matchcassiopeia.get_current_match()cassiopeia.get_featured_matches()FeaturedMatchesFeaturedMatches.append()FeaturedMatches.clear()FeaturedMatches.client_refresh_intervalFeaturedMatches.contains()FeaturedMatches.copy()FeaturedMatches.count()FeaturedMatches.delete()FeaturedMatches.enumerate()FeaturedMatches.extend()FeaturedMatches.filter()FeaturedMatches.find()FeaturedMatches.from_data()FeaturedMatches.from_generator()FeaturedMatches.index()FeaturedMatches.insert()FeaturedMatches.platformFeaturedMatches.pop()FeaturedMatches.regionFeaturedMatches.remove()FeaturedMatches.reverse()FeaturedMatches.search()FeaturedMatches.sort()FeaturedMatches.to_dict()FeaturedMatches.to_json()
CurrentMatchCurrentMatch.blue_teamCurrentMatch.creationCurrentMatch.durationCurrentMatch.existsCurrentMatch.from_data()CurrentMatch.idCurrentMatch.mapCurrentMatch.modeCurrentMatch.observer_keyCurrentMatch.participantsCurrentMatch.platformCurrentMatch.queueCurrentMatch.red_teamCurrentMatch.regionCurrentMatch.teamsCurrentMatch.type
TeamParticipant
- Summoners
cassiopeia.get_summoner()SummonerSummoner.accountSummoner.account_idSummoner.champion_masteriesSummoner.continentSummoner.current_matchSummoner.existsSummoner.idSummoner.league_entriesSummoner.levelSummoner.match_historySummoner.match_history_uriSummoner.platformSummoner.profile_iconSummoner.puuidSummoner.ranksSummoner.regionSummoner.revision_date
- Summoner Spells
cassiopeia.get_summoner_spells()SummonerSpellsSummonerSpells.append()SummonerSpells.clear()SummonerSpells.contains()SummonerSpells.copy()SummonerSpells.count()SummonerSpells.delete()SummonerSpells.enumerate()SummonerSpells.extend()SummonerSpells.filter()SummonerSpells.find()SummonerSpells.from_data()SummonerSpells.from_generator()SummonerSpells.included_dataSummonerSpells.index()SummonerSpells.insert()SummonerSpells.localeSummonerSpells.platformSummonerSpells.pop()SummonerSpells.regionSummonerSpells.remove()SummonerSpells.reverse()SummonerSpells.search()SummonerSpells.sort()SummonerSpells.to_dict()SummonerSpells.to_json()SummonerSpells.version
SummonerSpellSummonerSpell.alternative_imagesSummonerSpell.cooldownsSummonerSpell.costsSummonerSpell.descriptionSummonerSpell.effectsSummonerSpell.idSummonerSpell.imageSummonerSpell.included_dataSummonerSpell.keySummonerSpell.localeSummonerSpell.max_rankSummonerSpell.modesSummonerSpell.nameSummonerSpell.platformSummonerSpell.rangeSummonerSpell.regionSummonerSpell.resourceSummonerSpell.sanitized_descriptionSummonerSpell.sanitized_tooltipSummonerSpell.spriteSummonerSpell.tooltipSummonerSpell.variablesSummonerSpell.version
SpellVars
- Versions
cassiopeia.get_versions()cassiopeia.get_version()VersionsVersions.append()Versions.clear()Versions.contains()Versions.copy()Versions.count()Versions.delete()Versions.enumerate()Versions.extend()Versions.filter()Versions.find()Versions.from_data()Versions.from_generator()Versions.index()Versions.insert()Versions.platformVersions.pop()Versions.regionVersions.remove()Versions.reverse()Versions.search()Versions.sort()Versions.to_dict()Versions.to_json()