simyan.schemas package
Module contents
simyan.schemas package entry file.
Submodules
simyan.schemas.generic_entries module
The GenericEntries module.
This module provides the following classes:
GenericEntry
CountEntry
IssueEntry
CreatorEntry
ImageEntry
- class simyan.schemas.generic_entries.CountEntry(api_url: str, id_: int, count: int, name: Optional[str] = None, site_url: Optional[str] = None)
Bases:
object
The CountEntry object contains generic information with an added count field.
- api_url: str
Url to the ComicVine API.
- count: int
- id_: int
Identifier used in ComicVine.
- name: Optional[str] = None
- site_url: Optional[str] = None
Url to the ComicVine Website.
- class simyan.schemas.generic_entries.CreatorEntry(api_url: str, id_: int, roles: str, name: Optional[str] = None, site_url: Optional[str] = None)
Bases:
object
The CreatorEntry object contains generic information with an added roles field.
- api_url: str
Url to the ComicVine API.
- id_: int
Identifier used in ComicVine.
- name: Optional[str] = None
- roles: str
separated by
\n
.
- site_url: Optional[str] = None
Url to the ComicVine Website.
- class simyan.schemas.generic_entries.GenericEntry(api_url: str, id_: int, name: Optional[str] = None, site_url: Optional[str] = None)
Bases:
object
The GenericEntry object contains generic information.
- api_url: str
Url to the ComicVine API.
- id_: int
Identifier used in ComicVine.
- name: Optional[str] = None
- site_url: Optional[str] = None
Url to the ComicVine Website.
- class simyan.schemas.generic_entries.ImageEntry(icon: str, medium: str, screen: str, screen_large: str, small: str, super: str, thumbnail: str, tiny: str, original: str, tags: Optional[str] = None)
Bases:
object
The ImageEntry object contains image information.
- icon: str
Url to image of Icon size.
- medium: str
Url to image of Medium size.
- original: str
Url to image of Original size.
- screen: str
Url to image of Screen size.
- screen_large: str
Url to image of Screen Large size.
- small: str
Url to image of Small size.
- super: str
Url to image of Super size.
- tags: Optional[str] = None
- thumbnail: str
Url to image of Thumbnail size.
- tiny: str
Url to image of Tiny size.
- class simyan.schemas.generic_entries.IssueEntry(api_url: str, id_: int, name: Optional[str] = None, number: Optional[str] = None, site_url: Optional[str] = None)
Bases:
object
The IssueEntry object contains generic information with an added number field.
- api_url: str
Url to the ComicVine API.
- id_: int
Identifier used in ComicVine.
- name: Optional[str] = None
- number: Optional[str] = None
- site_url: Optional[str] = None
Url to the ComicVine Website.
simyan.schemas.publisher module
The Publisher module.
This module provides the following classes:
Publisher
PublisherResult
- class simyan.schemas.publisher.Publisher(api_url: str, date_added: datetime.datetime, date_last_updated: datetime.datetime, id_: int, image: simyan.schemas.generic_entries.ImageEntry, name: str, site_url: str, aliases: typing.Optional[str] = None, description: typing.Optional[str] = None, location_address: typing.Optional[str] = None, location_city: typing.Optional[str] = None, location_state: typing.Optional[str] = None, summary: typing.Optional[str] = None, characters: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, story_arcs: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, teams: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, volumes: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>)
Bases:
object
The Publisher object contains information for a publisher.
- aliases: Optional[str] = None
List of names the Publisher has used, separated by
\n
.
- api_url: str
Url to the Comicvine API.
- characters: List[simyan.schemas.generic_entries.GenericEntry]
List of characters the Publisher created.
- date_added: datetime.datetime
Date and time when the Publisher was added to Comicvine.
- date_last_updated: datetime.datetime
Date and time when the Publisher was updated on Comicvine.
- description: Optional[str] = None
Long description of the Publisher.
- id_: int
Identifier used in Comicvine.
- image: simyan.schemas.generic_entries.ImageEntry
Different sized images, posters and thumbnails for the Publisher.
- location_address: Optional[str] = None
Address of the Publisher.
- location_city: Optional[str] = None
City where the Publisher is.
- location_state: Optional[str] = None
State where the Publisher is.
- name: str
Name/Title of the Publisher.
- site_url: str
Url to the Comicvine Website.
- story_arcs: List[simyan.schemas.generic_entries.GenericEntry]
List of story arcs the Publisher created.
- summary: Optional[str] = None
Short description of the Publisher.
- teams: List[simyan.schemas.generic_entries.GenericEntry]
List of teams the Publisher created.
- volumes: List[simyan.schemas.generic_entries.GenericEntry]
List of volumes the Publisher created.
- class simyan.schemas.publisher.PublisherResult(api_url: str, date_added: datetime.datetime, date_last_updated: datetime.datetime, id_: int, image: simyan.schemas.generic_entries.ImageEntry, name: str, site_url: str, aliases: Optional[str] = None, description: Optional[str] = None, location_address: Optional[str] = None, location_city: Optional[str] = None, location_state: Optional[str] = None, summary: Optional[str] = None)
Bases:
object
The PublisherResult object contains information for a publisher.
- aliases: Optional[str] = None
List of names the Publisher has used, separated by
\n
.
- api_url: str
Url to the Comicvine API.
- date_added: datetime.datetime
Date and time when the Publisher was added to Comicvine.
- date_last_updated: datetime.datetime
Date and time when the Publisher was updated on Comicvine.
- description: Optional[str] = None
Long description of the Publisher.
- id_: int
Identifier used in Comicvine.
- image: simyan.schemas.generic_entries.ImageEntry
Different sized images, posters and thumbnails for the Publisher.
- location_address: Optional[str] = None
Address of the Publisher.
- location_city: Optional[str] = None
City where the Publisher is.
- location_state: Optional[str] = None
State where the Publisher is.
- name: str
Name/Title of the Publisher.
- site_url: str
Url to the Comicvine Website.
- summary: Optional[str] = None
Short description of the Publisher.
simyan.schemas.volume module
The Volume module.
This module provides the following classes:
Volume
VolumeResult
- class simyan.schemas.volume.Volume(api_url: str, date_added: datetime.datetime, date_last_updated: datetime.datetime, id_: int, image: simyan.schemas.generic_entries.ImageEntry, issue_count: int, name: str, site_url: str, aliases: typing.Optional[str] = None, description: typing.Optional[str] = None, first_issue: typing.Optional[simyan.schemas.generic_entries.IssueEntry] = None, last_issue: typing.Optional[simyan.schemas.generic_entries.IssueEntry] = None, publisher: typing.Optional[simyan.schemas.generic_entries.GenericEntry] = None, start_year: typing.Optional[int] = None, summary: typing.Optional[str] = None, characters: typing.List[simyan.schemas.generic_entries.CountEntry] = <factory>, concepts: typing.List[simyan.schemas.generic_entries.CountEntry] = <factory>, creators: typing.List[simyan.schemas.generic_entries.CountEntry] = <factory>, issues: typing.List[simyan.schemas.generic_entries.IssueEntry] = <factory>, locations: typing.List[simyan.schemas.generic_entries.CountEntry] = <factory>, objects: typing.List[simyan.schemas.generic_entries.CountEntry] = <factory>)
Bases:
object
The Volume object contains information for a volume.
- aliases: Optional[str] = None
List of names the Volume has used, separated by
\n
.
- api_url: str
Url to the Comicvine API.
- characters: List[simyan.schemas.generic_entries.CountEntry]
List of characters in the Volume.
- concepts: List[simyan.schemas.generic_entries.CountEntry]
List of concepts in the Volume.
- creators: List[simyan.schemas.generic_entries.CountEntry]
List of creators in the Volume.
- date_added: datetime.datetime
Date and time when the Volume was added to Comicvine.
- date_last_updated: datetime.datetime
Date and time when the Volume was updated on Comicvine.
- description: Optional[str] = None
Long description of the Volume.
- first_issue: Optional[simyan.schemas.generic_entries.IssueEntry] = None
First issue of the Volume.
- id_: int
Identifier used in Comicvine.
- image: simyan.schemas.generic_entries.ImageEntry
Different sized images, posters and thumbnails for the Volume.
- issue_count: int
Number of issues in the Volume.
- issues: List[simyan.schemas.generic_entries.IssueEntry]
List of issues in the Volume.
- last_issue: Optional[simyan.schemas.generic_entries.IssueEntry] = None
Last issue of the Volume.
- locations: List[simyan.schemas.generic_entries.CountEntry]
List of locations in the Volume.
- name: str
Name/Title of the Volume.
- objects: List[simyan.schemas.generic_entries.CountEntry]
List of objects in the Volume.
- publisher: Optional[simyan.schemas.generic_entries.GenericEntry] = None
The publisher of the Volume.
- site_url: str
Url to the Comicvine Website.
- start_year: Optional[int] = None
The year the Volume started.
- summary: Optional[str] = None
Short description of the Volume.
- class simyan.schemas.volume.VolumeResult(api_url: str, date_added: datetime.datetime, date_last_updated: datetime.datetime, id_: int, image: simyan.schemas.generic_entries.ImageEntry, issue_count: int, name: str, site_url: str, aliases: Optional[str] = None, description: Optional[str] = None, first_issue: Optional[simyan.schemas.generic_entries.IssueEntry] = None, last_issue: Optional[simyan.schemas.generic_entries.IssueEntry] = None, publisher: Optional[simyan.schemas.generic_entries.GenericEntry] = None, start_year: Optional[int] = None, summary: Optional[str] = None)
Bases:
object
The VolumeResult object contains information for a volume.
- aliases: Optional[str] = None
List of names the Volume has used, separated by
\n
.
- api_url: str
Url to the Comicvine API.
- date_added: datetime.datetime
Date and time when the Volume was added to Comicvine.
- date_last_updated: datetime.datetime
Date and time when the Volume was updated on Comicvine.
- description: Optional[str] = None
Long description of the Volume.
- first_issue: Optional[simyan.schemas.generic_entries.IssueEntry] = None
First issue of the Volume.
- id_: int
Identifier used in Comicvine.
- image: simyan.schemas.generic_entries.ImageEntry
Different sized images, posters and thumbnails for the Volume.
- issue_count: int
Number of issues in the Volume.
- last_issue: Optional[simyan.schemas.generic_entries.IssueEntry] = None
Last issue of the Volume.
- name: str
Name/Title of the Volume.
- publisher: Optional[simyan.schemas.generic_entries.GenericEntry] = None
The publisher of the Volume.
- site_url: str
Url to the Comicvine Website.
- start_year: Optional[int] = None
The year the Volume started.
- summary: Optional[str] = None
Short description of the Volume.
- simyan.schemas.volume.pre_process_volume(entry: Dict[str, Any]) Dict[str, Any]
Handle non-int values for start_year.
- Parameters
entry – Data from the Comicvine response
- Returns
Comicvine response with the start year either None or Int.
simyan.schemas.issue module
The Issue module.
This module provides the following classes:
Issue
IssueResult
- class simyan.schemas.issue.Issue(api_url: str, date_added: datetime.datetime, date_last_updated: datetime.datetime, id_: int, image: simyan.schemas.generic_entries.ImageEntry, number: str, site_url: str, volume: simyan.schemas.generic_entries.GenericEntry, aliases: typing.Optional[str] = None, cover_date: typing.Optional[datetime.date] = None, description: typing.Optional[str] = None, first_appearance_characters: typing.Optional[typing.List[simyan.schemas.generic_entries.GenericEntry]] = None, first_appearance_concepts: typing.Optional[typing.List[simyan.schemas.generic_entries.GenericEntry]] = None, first_appearance_locations: typing.Optional[typing.List[simyan.schemas.generic_entries.GenericEntry]] = None, first_appearance_objects: typing.Optional[typing.List[simyan.schemas.generic_entries.GenericEntry]] = None, first_appearance_story_arcs: typing.Optional[typing.List[simyan.schemas.generic_entries.GenericEntry]] = None, first_appearance_teams: typing.Optional[typing.List[simyan.schemas.generic_entries.GenericEntry]] = None, name: typing.Optional[str] = None, store_date: typing.Optional[datetime.date] = None, summary: typing.Optional[str] = None, characters: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, concepts: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, creators: typing.List[simyan.schemas.generic_entries.CreatorEntry] = <factory>, deaths: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, locations: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, objects: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, story_arcs: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, teams: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, teams_disbanded: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>)
Bases:
object
The Issue object contains information for an issue.
- aliases: Optional[str] = None
List of names the Issue has used, separated by
\n
.
- api_url: str
Url to the Comicvine API.
- characters: List[simyan.schemas.generic_entries.GenericEntry]
List of Characters in the Issue.
- concepts: List[simyan.schemas.generic_entries.GenericEntry]
List of Concepts in the Issue.
- cover_date: Optional[datetime.date] = None
Date on the cover of the Issue.
- creators: List[simyan.schemas.generic_entries.CreatorEntry]
List of Creators in the Issue.
- date_added: datetime.datetime
Date and time when the Issue was added to Comicvine.
- date_last_updated: datetime.datetime
Date and time when the Issue was updated on Comicvine.
- deaths: List[simyan.schemas.generic_entries.GenericEntry]
List of characters who died in the Issue.
- description: Optional[str] = None
Long description of the Issue.
- first_appearance_characters: Optional[List[simyan.schemas.generic_entries.GenericEntry]] = None
List of characters who first appear in the Issue.
- first_appearance_concepts: Optional[List[simyan.schemas.generic_entries.GenericEntry]] = None
List of concepts which first appear in the Issue.
- first_appearance_locations: Optional[List[simyan.schemas.generic_entries.GenericEntry]] = None
List of locations which first appear in the Issue.
- first_appearance_objects: Optional[List[simyan.schemas.generic_entries.GenericEntry]] = None
List of objects which first appear in the Issue.
- first_appearance_story_arcs: Optional[List[simyan.schemas.generic_entries.GenericEntry]] = None
List of story arcs which start in the Issue.
- first_appearance_teams: Optional[List[simyan.schemas.generic_entries.GenericEntry]] = None
List of teams which first appear in the Issue.
- id_: int
Identifier used in Comicvine.
- image: simyan.schemas.generic_entries.ImageEntry
Different sized images, posters and thumbnails for the Issue.
- locations: List[simyan.schemas.generic_entries.GenericEntry]
List of Locations in the Issue.
- name: Optional[str] = None
Name/Title of the Issue.
- number: str
The Issue number.
- objects: List[simyan.schemas.generic_entries.GenericEntry]
List of Objects in the Issue.
- site_url: str
Url to the Comicvine Website.
- store_date: Optional[datetime.date] = None
Date the Issue went on sale on stores.
- story_arcs: List[simyan.schemas.generic_entries.GenericEntry]
List of Story Arcs in the Issue.
- summary: Optional[str] = None
Short description of the Issue.
- teams: List[simyan.schemas.generic_entries.GenericEntry]
List of Teams in the Issue.
- teams_disbanded: List[simyan.schemas.generic_entries.GenericEntry]
List of Teams Disbanded in the Issue.
- volume: simyan.schemas.generic_entries.GenericEntry
The volume the Issue is in.
- class simyan.schemas.issue.IssueResult(api_url: str, date_added: datetime.datetime, date_last_updated: datetime.datetime, id_: int, image: simyan.schemas.generic_entries.ImageEntry, number: str, site_url: str, volume: simyan.schemas.generic_entries.GenericEntry, aliases: Optional[str] = None, cover_date: Optional[datetime.date] = None, description: Optional[str] = None, name: Optional[str] = None, store_date: Optional[datetime.date] = None, summary: Optional[str] = None)
Bases:
object
The IssueResult object contains information for a issue.
- aliases: Optional[str] = None
List of names the Issue has used, separated by
\n
.
- api_url: str
Url to the Comicvine API.
- cover_date: Optional[datetime.date] = None
Date on the cover of the Issue.
- date_added: datetime.datetime
Date and time when the Issue was added to Comicvine.
- date_last_updated: datetime.datetime
Date and time when the Issue was updated on Comicvine.
- description: Optional[str] = None
Long description of the Issue.
- id_: int
Identifier used in Comicvine.
- image: simyan.schemas.generic_entries.ImageEntry
Different sized images, posters and thumbnails for the Issue.
- name: Optional[str] = None
Name/Title of the Issue.
- number: str
- site_url: str
Url to the Comicvine Website.
- store_date: Optional[datetime.date] = None
Date the Issue went on sale on stores.
- summary: Optional[str] = None
Short description of the Issue.
- volume: simyan.schemas.generic_entries.GenericEntry
The volume the Issue is in.
simyan.schemas.story_arc module
The StoryArc module.
This module provides the following classes:
StoryArc
StoryArcResult
- class simyan.schemas.story_arc.StoryArc(api_url: str, date_added: datetime.datetime, date_last_updated: datetime.datetime, first_issue: simyan.schemas.generic_entries.IssueEntry, id_: int, image: simyan.schemas.generic_entries.ImageEntry, issue_count: int, name: str, publisher: simyan.schemas.generic_entries.GenericEntry, site_url: str, aliases: typing.Optional[str] = None, description: typing.Optional[str] = None, issues: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, summary: typing.Optional[str] = None)
Bases:
object
The StoryArc object contains information for a story arc.
- aliases: Optional[str] = None
List of names the Story Arc has used, separated by
\n
.
- api_url: str
Url to the Comicvine API.
- date_added: datetime.datetime
Date and time when the Story Arc was added to Comicvine.
- date_last_updated: datetime.datetime
Date and time when the Story Arc was updated on Comicvine.
- description: Optional[str] = None
Long description of the Story Arc.
- first_issue: simyan.schemas.generic_entries.IssueEntry
First issue of the Story Arc.
- id_: int
Identifier used in Comicvine.
- image: simyan.schemas.generic_entries.ImageEntry
Different sized images, posters and thumbnails for the Story Arc.
- issue_count: int
Number of issues in the Story Arc.
- issues: List[simyan.schemas.generic_entries.GenericEntry]
List of issues in the Story Arc.
- name: str
Name/Title of the Story Arc.
- publisher: simyan.schemas.generic_entries.GenericEntry
The publisher of the Story Arc.
- site_url: str
Url to the Comicvine Website.
- summary: Optional[str] = None
Short description of the Story Arc.
- class simyan.schemas.story_arc.StoryArcResult(api_url: str, date_added: datetime.datetime, date_last_updated: datetime.datetime, first_issue: simyan.schemas.generic_entries.IssueEntry, id_: int, image: simyan.schemas.generic_entries.ImageEntry, issue_count: int, name: str, publisher: simyan.schemas.generic_entries.GenericEntry, site_url: str, aliases: Optional[str] = None, description: Optional[str] = None, summary: Optional[str] = None)
Bases:
object
The StoryArcResult object contains information for a story arc.
- aliases: Optional[str] = None
List of names the Story Arc has used, separated by
\n
.
- api_url: str
Url to the Comicvine API.
- date_added: datetime.datetime
Date and time when the Story Arc was added to Comicvine.
- date_last_updated: datetime.datetime
Date and time when the Story Arc was updated on Comicvine.
- description: Optional[str] = None
Long description of the Story Arc.
- first_issue: simyan.schemas.generic_entries.IssueEntry
First issue of the Story Arc.
- id_: int
Identifier used in Comicvine.
- image: simyan.schemas.generic_entries.ImageEntry
Different sized images, posters and thumbnails for the Story Arc.
- issue_count: int
Number of issues in the Story Arc.
- name: str
Name/Title of the Story Arc.
- publisher: simyan.schemas.generic_entries.GenericEntry
The publisher of the Story Arc.
- site_url: str
Url to the Comicvine Website.
- summary: Optional[str] = None
Short description of the Story Arc.
simyan.schemas.creator module
The Creator module.
This module provides the following classes:
Creator
CreatorResult
- class simyan.schemas.creator.Creator(api_url: str, country: str, date_added: datetime.datetime, date_last_updated: datetime.datetime, description: str, gender: int, id_: int, image: simyan.schemas.generic_entries.ImageEntry, name: str, site_url: str, aliases: typing.Optional[str] = None, characters: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, date_of_birth: typing.Optional[datetime.date] = None, date_of_death: typing.Optional[datetime.date] = None, email: typing.Optional[str] = None, hometown: typing.Optional[str] = None, issue_count: typing.Optional[int] = None, issues: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, story_arcs: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, summary: typing.Optional[str] = None, volumes: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, website: typing.Optional[str] = None)
Bases:
object
The Creator object contains information for a creator.
- aliases: Optional[str] = None
List of names the Creator has used, separated by
\n
.
- api_url: str
Url to the Comicvine API.
- characters: List[simyan.schemas.generic_entries.GenericEntry]
List of characters the Creator has created.
- country: str
Country where the Creator is from.
- date_added: datetime.datetime
Date and time when the Creator was added to Comicvine.
- date_last_updated: datetime.datetime
Date and time when the Creator was updated on Comicvine.
- date_of_birth: Optional[datetime.date] = None
Date when the Creator was born.
- date_of_death: Optional[datetime.date] = None
Date when the Creator died.
- description: str
Long description of the Creator.
- email: Optional[str] = None
Email address of the Creator.
- gender: int
Creator gender.
- hometown: Optional[str] = None
Hometown of the Creator.
- id_: int
Identifier used in Comicvine.
- image: simyan.schemas.generic_entries.ImageEntry
Different sized images, posters and thumbnails for the Creator.
- issue_count: Optional[int] = None
Number of issues the Creator appears in.
- issues: List[simyan.schemas.generic_entries.GenericEntry]
List of issues the Creator appears in.
- name: str
Name of the Creator.
- site_url: str
Url to the Comicvine Website.
- story_arcs: List[simyan.schemas.generic_entries.GenericEntry]
List of story arcs the Creator appears in.
- summary: Optional[str] = None
Short description of the Creator.
- volumes: List[simyan.schemas.generic_entries.GenericEntry]
List of volumes the Creator appears in.
- website: Optional[str] = None
Url to the Creator’s website.
- class simyan.schemas.creator.CreatorResult(api_url: str, country: str, date_added: datetime.datetime, date_last_updated: datetime.datetime, description: str, gender: int, id_: int, image: simyan.schemas.generic_entries.ImageEntry, name: str, site_url: str, aliases: Optional[str] = None, date_of_birth: Optional[datetime.date] = None, date_of_death: Optional[datetime.date] = None, email: Optional[str] = None, hometown: Optional[str] = None, issue_count: Optional[int] = None, summary: Optional[str] = None, website: Optional[str] = None)
Bases:
object
The CreatorResult object contains information for a creator.
- aliases: Optional[str] = None
List of names the Creator has used, separated by
\n
.
- api_url: str
Url to the Comicvine API.
- country: str
Country where the Creator is from.
- date_added: datetime.datetime
Date and time when the Creator was added to Comicvine.
- date_last_updated: datetime.datetime
Date and time when the Creator was updated on Comicvine.
- date_of_birth: Optional[datetime.date] = None
Date when the Creator was born.
- date_of_death: Optional[datetime.date] = None
Date when the Creator died.
- description: str
Long description of the Creator.
- email: Optional[str] = None
Email address of the Creator.
- gender: int
Creator gender.
- hometown: Optional[str] = None
Hometown of the Creator.
- id_: int
Identifier used in Comicvine.
- image: simyan.schemas.generic_entries.ImageEntry
Different sized images, posters and thumbnails for the Creator.
- issue_count: Optional[int] = None
Number of issues the Creator appears in.
- name: str
Name of the Creator.
- site_url: str
Url to the Comicvine Website.
- summary: Optional[str] = None
Short description of the Creator.
- website: Optional[str] = None
Url to the Creator’s website.
- simyan.schemas.creator.pre_process_creator(entry: Dict[str, Any]) Dict[str, Any]
Only keep the date of death and date of birth information from ComicVine. The timezone info they include is not of any use.
- Parameters
entry – Data from the Comicvine response.
- Returns
Comicvine response with the date of death and date of birth information included.
simyan.schemas.character module
The Character module.
This module provides the following classes:
Character
CharacterResult
- class simyan.schemas.character.Character(api_url: str, date_added: datetime.datetime, date_last_updated: datetime.datetime, description: str, first_issue: simyan.schemas.generic_entries.IssueEntry, gender: int, id_: int, image: simyan.schemas.generic_entries.ImageEntry, name: str, origin: simyan.schemas.generic_entries.GenericEntry, publisher: simyan.schemas.generic_entries.GenericEntry, real_name: str, site_url: str, aliases: typing.Optional[str] = None, creators: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, date_of_birth: typing.Optional[datetime.date] = None, deaths: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, enemies: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, enemy_teams: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, friendly_teams: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, friends: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, issue_count: typing.Optional[int] = None, issues: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, powers: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, story_arcs: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, summary: typing.Optional[str] = None, teams: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>, volumes: typing.List[simyan.schemas.generic_entries.GenericEntry] = <factory>)
Bases:
object
The Character object contains information for a character.
- aliases: Optional[str] = None
List of names the Character has used, separated by
\n
.
- api_url: str
Url to the ComicVine API.
- creators: List[simyan.schemas.generic_entries.GenericEntry]
List of creators which worked on the Character.
- date_added: datetime.datetime
Date and time when the Character was added to Comicvine.
- date_last_updated: datetime.datetime
Date and time when the Character was updated on Comicvine.
- date_of_birth: Optional[datetime.date] = None
Date when the Character was born.
- deaths: List[simyan.schemas.generic_entries.GenericEntry]
List of times when the Character has died.
- description: str
Long description of the Character.
- enemies: List[simyan.schemas.generic_entries.GenericEntry]
List of enemies the Character has.
- enemy_teams: List[simyan.schemas.generic_entries.GenericEntry]
List of enemy teams the Character has.
- first_issue: simyan.schemas.generic_entries.IssueEntry
First issue the Character appeared in.
- friendly_teams: List[simyan.schemas.generic_entries.GenericEntry]
List of friendly teams the Character has.
- friends: List[simyan.schemas.generic_entries.GenericEntry]
List of friends the Character has.
- gender: int
Character gender.
- id_: int
Identifier used in ComicVine.
- image: simyan.schemas.generic_entries.ImageEntry
Different sized images, posters and thumbnails for the Character.
- issue_count: Optional[int] = None
Number of issues the Character appears in.
- issues: List[simyan.schemas.generic_entries.GenericEntry]
List of issues the Character appears in.
- name: str
Real name or public identity of Character.
- origin: simyan.schemas.generic_entries.GenericEntry
The type of Character.
- powers: List[simyan.schemas.generic_entries.GenericEntry]
List of powers the Character has.
- publisher: simyan.schemas.generic_entries.GenericEntry
The publisher of the Character.
- real_name: str
Name of the Character.
- site_url: str
Url to the ComicVine Website.
- story_arcs: List[simyan.schemas.generic_entries.GenericEntry]
List of story arcs the Character appears in.
- summary: Optional[str] = None
Short description of the Character.
- teams: List[simyan.schemas.generic_entries.GenericEntry]
List of teams the Character appears in.
- volumes: List[simyan.schemas.generic_entries.GenericEntry]
List of volumes the Character appears in.
- class simyan.schemas.character.CharacterResult(api_url: str, date_added: datetime.datetime, date_last_updated: datetime.datetime, description: str, first_issue: simyan.schemas.generic_entries.IssueEntry, gender: int, id_: int, image: simyan.schemas.generic_entries.ImageEntry, name: str, origin: simyan.schemas.generic_entries.GenericEntry, publisher: simyan.schemas.generic_entries.GenericEntry, real_name: str, site_url: str, aliases: Optional[str] = None, date_of_birth: Optional[datetime.date] = None, issue_count: Optional[int] = None, summary: Optional[str] = None)
Bases:
object
The CharacterResult object contains information for a character.
- aliases: Optional[str] = None
List of names the Character has used, separated by
\n
.
- api_url: str
Url to the ComicVine API.
- date_added: datetime.datetime
Date and time when the Character was added to Comicvine.
- date_last_updated: datetime.datetime
Date and time when the Character was updated on Comicvine.
- date_of_birth: Optional[datetime.date] = None
Date when the Character was born.
- description: str
Long description of the Character.
- first_issue: simyan.schemas.generic_entries.IssueEntry
First issue the Character appeared in.
- gender: int
Character gender.
- id_: int
Identifier used in ComicVine.
- image: simyan.schemas.generic_entries.ImageEntry
Different sized images, posters and thumbnails for the Character.
- issue_count: Optional[int] = None
Number of issues the Character appears in.
- name: str
Real name or public identity of Character.
- origin: simyan.schemas.generic_entries.GenericEntry
The type of Character.
- publisher: simyan.schemas.generic_entries.GenericEntry
The publisher of the Character.
- real_name: str
Name of the Character.
- site_url: str
Url to the ComicVine Website.
- summary: Optional[str] = None
Short description of the Character.