Module genshin.models.starrail.character

Starrail base character model.

Classes

class FloorCharacter (**data: Any)

Character in a floor.

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 allow self as a field name.

Expand source code
class FloorCharacter(StarRailBaseCharacter):
    """Character in a floor."""

    level: int
    rank: int

Ancestors

Class variables

var level : int
var model_computed_fields
var model_config : pydantic.config.ConfigDict
var model_fields
var rank : int
class RogueCharacter (**data: Any)

Rogue character 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 allow self as a field name.

Expand source code
class RogueCharacter(StarRailBaseCharacter):
    """Rogue character model."""

    level: int
    rank: int

Ancestors

Class variables

var level : int
var model_computed_fields
var model_config : pydantic.config.ConfigDict
var model_fields
var rank : int
class StarRailBaseCharacter (**data: Any)

Base character 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 allow self as a field name.

Expand source code
class StarRailBaseCharacter(APIModel, Unique):
    """Base character model."""

    id: int
    element: str
    rarity: int
    icon: str

Ancestors

Subclasses

Class variables

var element : str
var icon : str
var id : int
var model_computed_fields
var model_config : pydantic.config.ConfigDict
var model_fields
var rarity : int
class StarRailPartialCharacter (**data: Any)

Character without any equipment.

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 allow self as a field name.

Expand source code
class StarRailPartialCharacter(StarRailBaseCharacter):
    """Character without any equipment."""

    name: str
    level: int
    rank: int

Ancestors

Subclasses

Class variables

var level : int
var model_computed_fields
var model_config : pydantic.config.ConfigDict
var model_fields
var name : str
var rank : int