Skip to content

Character

BasicCharacter

Bases: BaseModel

Contains fields for all Characters.

ATTRIBUTE DESCRIPTION
aliases

List of names used by the Character, collected in a string.

TYPE: str | None

api_url

Url to the resource in the Comicvine API.

TYPE: HttpUrl

date_added

Date and time when the Character was added.

TYPE: datetime

date_last_updated

Date and time when the Character was last updated.

TYPE: datetime

date_of_birth

Date when the Character was born.

TYPE: date | None

description

Long description of the Character.

TYPE: str | None

first_issue

First issue the Character appeared in.

TYPE: GenericIssue | None

gender

Character gender.

TYPE: int

id

Identifier used by Comicvine.

TYPE: int

image

Different sized images, posters and thumbnails for the Character.

TYPE: Images

issue_count

Number of issues the Character appears in.

TYPE: int

name

Real name or public identity of Character.

TYPE: str

origin

The type of Character.

TYPE: GenericEntry | None

publisher

The publisher of the Character.

TYPE: GenericEntry | None

real_name

Name of the Character.

TYPE: str | None

site_url

Url to the resource in Comicvine.

TYPE: HttpUrl

summary

Short description of the Character.

TYPE: str | None

Source code in simyan/schemas/character.py
Python
53
54
55
56
def __init__(self, **data: Any):
    if data.get("birth"):
        data["birth"] = datetime.strptime(data["birth"], "%b %d, %Y").date()  # noqa: DTZ007
    super().__init__(**data)

Character

Bases: BasicCharacter

Extends BasicCharacter by including all the list references of a character.

ATTRIBUTE DESCRIPTION
creators

List of creators which worked on the Character.

TYPE: list[GenericEntry]

deaths

List of times when the Character has died.

TYPE: list[GenericEntry]

enemies

List of enemies the Character has.

TYPE: list[GenericEntry]

enemy_teams

List of enemy teams the Character has.

TYPE: list[GenericEntry]

friendly_teams

List of friendly teams the Character has.

TYPE: list[GenericEntry]

friends

List of friends the Character has.

TYPE: list[GenericEntry]

issues

List of issues the Character appears in.

TYPE: list[GenericEntry]

powers

List of powers the Character has.

TYPE: list[GenericEntry]

story_arcs

List of story arcs the Character appears in.

TYPE: list[GenericEntry]

teams

List of teams the Character appears in.

TYPE: list[GenericEntry]

volumes

List of volumes the Character appears in.

TYPE: list[GenericEntry]

Source code in simyan/schemas/character.py
Python
53
54
55
56
def __init__(self, **data: Any):
    if data.get("birth"):
        data["birth"] = datetime.strptime(data["birth"], "%b %d, %Y").date()  # noqa: DTZ007
    super().__init__(**data)