Skip to content

Genshin Chronicle Character Models

characters

Genshin chronicle character.

Classes:

__all__ module-attribute

__all__ = ['Artifact', 'ArtifactProperty', 'ArtifactSet', 'ArtifactSetEffect', 'Character', 'CharacterSkill', 'CharacterWeapon', 'Constellation', 'DetailArtifact', 'DetailCharacterWeapon', 'GenshinDetailCharacter', 'GenshinDetailCharacters', 'GenshinWeaponType', 'Outfit', 'PartialCharacter', 'PropInfo', 'PropertyValue', 'SkillAffix']

Artifact pydantic-model

Character's equipped artifact.

Fields:

icon pydantic-field

icon: str

id pydantic-field

id: int

level pydantic-field

level: int

name pydantic-field

name: str

pos pydantic-field

pos: int

pos_name pydantic-field

pos_name: str

rarity pydantic-field

rarity: int

set pydantic-field

ArtifactProperty pydantic-model

Artifact's Property value & roll count.

Fields:

info pydantic-field

info: PropInfo

times pydantic-field

times: int

value pydantic-field

value: str

ArtifactSet pydantic-model

Artifact set.

Fields:

effects pydantic-field

id pydantic-field

id: int

name pydantic-field

name: str

ArtifactSetEffect pydantic-model

Effect of an artifact set.

Fields:

active pydantic-field

active: bool = False

effect pydantic-field

effect: str

required_piece_num pydantic-field

required_piece_num: int

Character pydantic-model

Character with equipment.

Fields:

weapon pydantic-field

weapon_type pydantic-field

weapon_type: int

CharacterSkill pydantic-model

Character's skill.

Fields:

affixes pydantic-field

affixes: Sequence[SkillAffix]

description pydantic-field

description: str

icon pydantic-field

icon: str

id pydantic-field

id: int

is_unlocked pydantic-field

is_unlocked: bool

level pydantic-field

level: int

name pydantic-field

name: str

skill_type pydantic-field

skill_type: int

CharacterWeapon pydantic-model

Character's equipped weapon.

Fields:

icon pydantic-field

icon: str

id pydantic-field

id: int

level pydantic-field

level: int

name pydantic-field

name: str

rarity pydantic-field

rarity: int

refinement pydantic-field

refinement: int

type pydantic-field

type: int

Constellation pydantic-model

Character constellation.

Fields:

activated pydantic-field

activated: bool

effect pydantic-field

effect: str

icon pydantic-field

icon: str

id pydantic-field

id: int

name pydantic-field

name: str

pos pydantic-field

pos: int

scaling property

scaling: bool

Whether the constellation is simply for talent scaling

DetailArtifact pydantic-model

Detailed artifact with main/sub stats.

Fields:

main_stat pydantic-field

main_stat: ArtifactProperty

sub_stats pydantic-field

DetailCharacterWeapon pydantic-model

Detailed Genshin Weapon with main/sub stats.

Fields:

ascension pydantic-field

ascension: int

main_stat pydantic-field

main_stat: PropertyValue

sub_stat pydantic-field

GenshinDetailCharacter pydantic-model

Full Detailed Genshin Character

Fields:

artifacts pydantic-field

base_properties pydantic-field

base_properties: Sequence[PropertyValue]

constellations pydantic-field

constellations: Sequence[Constellation]

costumes pydantic-field

costumes: Sequence[Outfit]

display_image pydantic-field

display_image: str

element_properties pydantic-field

element_properties: Sequence[PropertyValue]

extra_properties pydantic-field

extra_properties: Sequence[PropertyValue]

is_chosen pydantic-field

is_chosen: bool

selected_properties pydantic-field

selected_properties: Sequence[PropertyValue]

skills pydantic-field

weapon pydantic-field

weapon_type pydantic-field

weapon_type: GenshinWeaponType

GenshinDetailCharacters pydantic-model

Genshin character list.

Fields:

Validators:

artifact_wiki pydantic-field

artifact_wiki: Mapping[str, str]

avatar_wiki pydantic-field

avatar_wiki: Mapping[str, str]

characters pydantic-field

possible_artifact_stats pydantic-field

possible_artifact_stats: Mapping[str, Sequence[PropInfo]]

property_map pydantic-field

property_map: Mapping[str, PropInfo]

weapon_wiki pydantic-field

weapon_wiki: Mapping[str, str]

__fill_prop_info pydantic-validator

__fill_prop_info(values: dict[str, Any]) -> Mapping[str, Any]

Fill property info from properety_map.

GenshinWeaponType

Character weapon types.

Attributes:

BOW class-attribute instance-attribute

BOW = 12

CATALYST class-attribute instance-attribute

CATALYST = 10

CLAYMORE class-attribute instance-attribute

CLAYMORE = 11

POLEARM class-attribute instance-attribute

POLEARM = 13

SWORD class-attribute instance-attribute

SWORD = 1

Outfit pydantic-model

Outfit of a character.

Fields:

icon pydantic-field

icon: str

id pydantic-field

id: int

name pydantic-field

name: str

PartialCharacter pydantic-model

Character without any equipment.

Fields:

constellation pydantic-field

constellation: int

friendship pydantic-field

friendship: int

level pydantic-field

level: int

PropInfo pydantic-model

A property such as Crit Rate, HP, HP%.

Fields:

Validators:

filter_name pydantic-field

filter_name: str

icon pydantic-field

icon: Optional[str]

name pydantic-field

name: str

type pydantic-field

type: int

__fix_names pydantic-validator

__fix_names(value: str) -> str

Fix "\xa0" in Crit Damage + Crit Rate names.

PropertyValue pydantic-model

A property with a value.

Fields:

add pydantic-field

add: str

base pydantic-field

base: str

final pydantic-field

final: str

info pydantic-field

info: PropInfo

SkillAffix pydantic-model

Skill affix texts.

Fields:

name pydantic-field

name: str

value pydantic-field

value: str