Skip to content

Star Rail RPG Simulator Models

rpgsimulator

HSR Lineup Simulator.

Classes:

__all__ module-attribute

__all__ = ('APCShadowLineup', 'APCShadowLineupResponse', 'APCShadowSchedule', 'LineupDetail', 'MOCSchedule', 'PureFictionLineup', 'PureFictionLineupResponse', 'PureFictionSchedule', 'StarRailGameMode', 'StarRailGameModeBuff', 'StarRailGameModeFloor', 'StarRailGameModeSchedule', 'StarRailGameModeType', 'StarRailLineup', 'StarRailLineupPlayer', 'StarRailLineupResponse')

APCShadowLineup pydantic-model

A Apocalyptic Shadow lineup.

Fields:

Validators:

detail pydantic-field

detail: LineupDetail

node1_challenged_at pydantic-field

node1_challenged_at: DateTime

node2_challenged_at pydantic-field

node2_challenged_at: DateTime

APCShadowLineupResponse pydantic-model

Response for Apocalyptic Shadow lineups.

Fields:

lineups pydantic-field

next_page_token pydantic-field

next_page_token: str

APCShadowSchedule pydantic-model

Apocalyptic Shadow schedule.

Fields:

Validators:

buff pydantic-field

node1_buffs pydantic-field

node2_buffs pydantic-field

__convert_buffs pydantic-validator

__convert_buffs(v: dict[str, Any]) -> dict[str, Any]

LineupDetail pydantic-model

Detail for a lineup.

Fields:

buffs pydantic-field

points pydantic-field

points: int

MOCSchedule pydantic-model

Memory of Chaos schedule.

Fields:

Validators:

buff pydantic-field

__convert_buffs pydantic-validator

__convert_buffs(v: dict[str, Any]) -> dict[str, Any]

PureFictionLineup pydantic-model

A Pure Fiction lineup.

Fields:

Validators:

detail pydantic-field

detail: LineupDetail

node1_challenged_at pydantic-field

node1_challenged_at: DateTime

node2_challenged_at pydantic-field

node2_challenged_at: DateTime

PureFictionLineupResponse pydantic-model

Response for Pure Fiction lineups.

Fields:

lineups pydantic-field

next_page_token pydantic-field

next_page_token: str

PureFictionSchedule pydantic-model

Pure Future schedule.

Fields:

buffs pydantic-field

default_buffs pydantic-field

StarRailGameMode pydantic-model

HSR game mode, like MOC.

Fields:

Validators:

floors pydantic-field

id pydantic-field

id: int

name pydantic-field

name: str

type pydantic-field

__unnest_children pydantic-validator

__unnest_children(v: dict[str, Any]) -> dict[str, Any]

Unnest the children field.

StarRailGameModeBuff pydantic-model

HSR game mode buff.

Fields:

desc pydantic-field

desc: str

icon pydantic-field

icon: Optional[str] = None

name pydantic-field

name: str

simple_desc pydantic-field

simple_desc: Optional[str] = None

StarRailGameModeFloor pydantic-model

A floor of a game mode, like MOC Stage 1.

Fields:

Validators:

floor pydantic-field

floor: int

id pydantic-field

id: int

name pydantic-field

name: str

__extract_floor pydantic-validator

__extract_floor(v: dict[str, Any]) -> dict[str, Any]

StarRailGameModeSchedule pydantic-model

Base HSR lineup game mode schedule.

Fields:

end_time pydantic-field

end_time: datetime

floor_nums pydantic-field

floor_nums: int

id pydantic-field

id: int

is_now pydantic-field

is_now: bool

is_show pydantic-field

is_show: bool

name pydantic-field

name: str

start_time pydantic-field

start_time: datetime

StarRailGameModeType

HSR lineup game mode enum.

Attributes:

ANOMALY_ARBITRATION class-attribute instance-attribute

ANOMALY_ARBITRATION = 'Peak'

Anomaly Arbitration.

APC_SHADOW class-attribute instance-attribute

APC_SHADOW = 'Boss'

Apocalyptic Shadow.

MOC class-attribute instance-attribute

MOC = 'Chasm'

Memory of Chaos.

PURE_FICTION class-attribute instance-attribute

PURE_FICTION = 'Story'

Pure Fiction.

StarRailLineup pydantic-model

A HSR lineup.

Fields:

Validators:

characters pydantic-field

comments pydantic-field

comments: int

created_at pydantic-field

created_at: datetime

cycles_taken pydantic-field

cycles_taken: int

description pydantic-field

description: str

favorites pydantic-field

favorites: int

id pydantic-field

id: str

last_edited_at pydantic-field

last_edited_at: datetime

likes pydantic-field

likes: int

player pydantic-field

stars pydantic-field

stars: int

title pydantic-field

title: str

type pydantic-field

views pydantic-field

views: int

__nest_player pydantic-validator

__nest_player(v: dict[str, Any]) -> dict[str, Any]

Nest the player field.

__unnest_characters pydantic-validator

__unnest_characters(v: Sequence[dict[str, Any]]) -> Sequence[Sequence[dict[str, Any]]]

StarRailLineupPlayer pydantic-model

A HSR lineup player.

Fields:

avatar_url pydantic-field

avatar_url: str

level pydantic-field

level: int

nickname pydantic-field

nickname: str

uid pydantic-field

uid: str

StarRailLineupResponse pydantic-model

Response for HSR lineups.

Fields:

lineups pydantic-field

next_page_token pydantic-field

next_page_token: str