Skip to content

Name Card Models

name_card

Classes:

  • Namecard –

    Represents a namecard summary.

  • NamecardDetail –

    Represents detailed information about a namecard.

Namecard pydantic-model

Represents a namecard summary.

Attributes:

  • id (int) –

    The namecard's unique ID.

  • name (str) –

    The namecard's name.

  • type (str) –

    The type or category of the namecard.

  • rarity (int) –

    The rarity rank of the namecard.

  • icon (str) –

    The icon URL for the namecard.

  • route (str) –

    The route identifier for the namecard.

Fields:

Validators:

  • _convert_icon_url → icon

icon pydantic-field

icon: str

id pydantic-field

id: int

name pydantic-field

name: str

picture property

picture: str

The URL for the full picture version of the namecard.

rarity pydantic-field

rarity: int

route pydantic-field

route: str

type pydantic-field

type: str

NamecardDetail pydantic-model

Represents detailed information about a namecard.

Attributes:

  • id (int) –

    The namecard's unique ID.

  • name (str) –

    The namecard's name.

  • rarity (int) –

    The rarity rank of the namecard.

  • icon (str) –

    The icon URL for the namecard.

  • route (str) –

    The route identifier for the namecard.

  • description (str) –

    The general description of the namecard.

  • description_special (str) –

    A special or alternative description (optional).

  • source (str | None) –

    How the namecard is obtained (optional).

Fields:

Validators:

  • _convert_icon_url → icon

description pydantic-field

description: str

description_special pydantic-field

description_special: str

icon pydantic-field

icon: str

id pydantic-field

id: int

name pydantic-field

name: str

picture property

picture: str

The URL for the full picture version of the namecard.

rarity pydantic-field

rarity: int

route pydantic-field

route: str

source pydantic-field

source: str | None