Module genshin.models.model
Modified pydantic model.
Functions
def Aliased(alias: typing.Optional[str] = None, default: typing.Any = None, **kwargs: typing.Any) ‑> Any
-
Create an aliased field.
Classes
class APIModel (**data: Any)
-
Modified pydantic model.
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 allowself
as a field name.Expand source code
class APIModel(pydantic.BaseModel): """Modified pydantic model.""" model_config: pydantic.ConfigDict = pydantic.ConfigDict(arbitrary_types_allowed=True) # type: ignore
Ancestors
- pydantic.main.BaseModel
Subclasses
- CalculatorArtifact
- CalculatorArtifactResult
- CalculatorCharacterDetails
- CalculatorConsumable
- CalculatorFurnishing
- CalculatorFurnishingResults
- CalculatorResult
- CalculatorTalent
- CalculatorWeapon
- BaseCharacter
- Battle
- Chamber
- CharacterRanks
- Floor
- SpiralAbyss
- SpiralAbyssPair
- Activities
- EnergyAmplifier
- genshin.models.genshin.chronicle.activities.EnergyAmplifierBuff
- genshin.models.genshin.chronicle.activities.EnergyAmplifierCriteria
- HyakuninIkki
- genshin.models.genshin.chronicle.activities.HyakuninIkkiBattle
- genshin.models.genshin.chronicle.activities.HyakuninIkkiSkill
- LabyrinthWarriors
- genshin.models.genshin.chronicle.activities.LabyrinthWarriorsRune
- OldActivity
- Potion
- genshin.models.genshin.chronicle.activities.PotionBuff
- genshin.models.genshin.chronicle.activities.PotionCharacter
- genshin.models.genshin.chronicle.activities.PotionStage
- Summer
- genshin.models.genshin.chronicle.activities.SummerMemories
- genshin.models.genshin.chronicle.activities.SummerRealmExploration
- genshin.models.genshin.chronicle.activities.SummerSurfpiercer
- Artifact
- ArtifactProperty
- ArtifactSet
- ArtifactSetEffect
- CharacterSkill
- CharacterWeapon
- Constellation
- GenshinDetailCharacters
- Outfit
- PropInfo
- PropertyValue
- SkillAffix
- Act
- BattleStatCharacter
- ImgTheater
- ImgTheaterData
- TheaterBattleStats
- TheaterBuff
- TheaterSchedule
- TheaterStats
- ArchonQuest
- ArchonQuestProgress
- AttendanceReward
- DailyTasks
- Expedition
- Notes
- TaskReward
- AreaExploration
- BossKill
- Exploration
- NatlanReputation
- NatlanTribe
- Offering
- PartialGenshinUserStats
- Stats
- Teapot
- TeapotRealm
- TCGCharacterTalent
- TCGCost
- TCGPartialCard
- TCGPreview
- ClaimedDailyReward
- DailyReward
- BaseDiary
- DayDiaryData
- DiaryAction
- DiaryActionCategory
- MonthDiaryData
- StarRailDayDiaryData
- StarRailDiaryAction
- StarRailDiaryActionCategory
- StarRailMonthDiaryData
- BannerDetailItem
- BannerDetails
- BannerDetailsUpItem
- genshin.models.genshin.gacha.BaseWish
- GachaItem
- LineupArtifactStat
- LineupArtifactStatFields
- LineupFields
- LineupPreview
- LineupScenario
- PartialLineupArtifactSet
- PartialLineupWeapon
- TeapotReplica
- TeapotReplicaAuthor
- TeapotReplicaBlueprint
- TeapotReplicaStats
- BaseTransaction
- genshin.models.genshin.wiki.BaseWikiPreview
- WikiPage
- Battlesuit
- Equipment
- genshin.models.honkai.chronicle.modes.BaseAbyss
- Boss
- genshin.models.honkai.chronicle.modes.Condition
- ELF
- ElysianRealm
- MemorialArena
- MemorialBattle
- genshin.models.honkai.chronicle.modes.RemembranceSigil
- genshin.models.honkai.chronicle.modes.Signet
- genshin.models.honkai.chronicle.stats.ElysianRealmStats
- HonkaiStats
- HonkaiUserStats
- genshin.models.honkai.chronicle.stats.MemorialArenaStats
- genshin.models.honkai.chronicle.stats.OldAbyssStats
- genshin.models.honkai.chronicle.stats.SuperstringAbyssStats
- Announcement
- AccountInfo
- GenshinAccount
- HoyolabUserCertification
- HoyolabUserLevel
- PartialHoyolabUser
- RecordCardData
- RecordCardSetting
- UserInfo
- StarRailBaseCharacter
- PartialTime
- APCShadowBoss
- ChallengeBuff
- FloorNode
- StarRailAPCShadow
- StarRailChallenge
- genshin.models.starrail.chronicle.challenge.StarRailChallengeFloor
- StarRailChallengeSeason
- StarRailPureFiction
- CharacterProperty
- ModifyRelicProperty
- PropertyInfo
- Rank
- RecommendProperty
- Relic
- RelicProperty
- Skill
- SkillStage
- StarRailDetailCharacters
- StarRailEquipment
- genshin.models.starrail.chronicle.events.HSRBaseEvent
- HSRBaseEventItem
- HSREventCalendar
- HSREventReward
- TimeInfo
- StarRailExpedition
- StarRailNote
- RogueBasicInfo
- RogueBuff
- RogueBuffItem
- RogueBuffType
- RogueMiracle
- RogueRecord
- RogueRecordBasic
- RogueRecordDetail
- RogueUserRole
- StarRailRogue
- PartialStarRailUserStats
- StarRailStats
- StarRailUserInfo
- AgentSkill
- AgentSkillItem
- DiscSetEffect
- WEngine
- ZZZAgentRank
- ZZZBaseAgent
- ZZZDisc
- ZZZProperty
- ShiyuDefense
- ShiyuDefenseBangboo
- ShiyuDefenseBuff
- ShiyuDefenseCharacter
- ShiyuDefenseFloor
- ShiyuDefenseMonster
- ShiyuDefenseNode
- IncomeData
- PolychromeIncome
- ZZZDiary
- ZZZDiaryDetail
- ZZZDiaryDetailItem
- ZZZDiaryPlayerInfo
- ZZZIncomeCurrency
- BatteryCharge
- genshin.models.zzz.chronicle.notes.BountyCommission
- genshin.models.zzz.chronicle.notes.HollowZero
- genshin.models.zzz.chronicle.notes.SurveyPoints
- ZZZEngagement
- ZZZNotes
- ZZZBaseBangboo
- ZZZStats
- ZZZUserStats
Class variables
var model_computed_fields
var model_config : pydantic.config.ConfigDict
var model_fields
class Unique
-
A hashable model with an id.
Expand source code
class Unique(abc.ABC): """A hashable model with an id.""" id: int def __int__(self) -> int: return hash(self.id) def __hash__(self) -> int: return hash(self.id)
Ancestors
- abc.ABC
Subclasses
- CalculatorArtifact
- CalculatorConsumable
- CalculatorFurnishing
- CalculatorTalent
- CalculatorWeapon
- BaseCharacter
- Artifact
- ArtifactSet
- CharacterWeapon
- Constellation
- Outfit
- TCGPartialCard
- ClaimedDailyReward
- genshin.models.genshin.gacha.BaseWish
- GachaItem
- LineupArtifactStat
- LineupPreview
- LineupScenario
- PartialLineupArtifactSet
- PartialLineupWeapon
- BaseTransaction
- genshin.models.genshin.wiki.BaseWikiPreview
- Battlesuit
- Equipment
- Boss
- ELF
- Announcement
- RecordCardSetting
- StarRailBaseCharacter
- ZZZBaseAgent
Class variables
var id : int