models
Module for all models used in the project.
Anime
Bases: BaseModel
Represents a model for all the fields that an anime can contain.
Source code in aniwrap/models/anime.py
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 |
|
alternative_titles
instance-attribute
The Alternative titles for the anime.
average_episode_duration
class-attribute
instance-attribute
The average episode duration of the anime represented in seconds. Defaults to 0
if not aired or information is not available.
background
class-attribute
instance-attribute
Some extra information related to the anime. Defaults to None
if information is not available.
broadcast
class-attribute
instance-attribute
The broadcast day and time details. Defaults to None
if not aired or information is not available.
end_date
class-attribute
instance-attribute
The anime's airing end date. Defaults to None
if the anime is not aired yet.
main_picture
instance-attribute
The urls for medium and large sized pictures of the posters.
mean
class-attribute
instance-attribute
The score of the anime on MAL. Defaults to None
for anime that are not aired yet.
num_episodes
class-attribute
instance-attribute
The number of episodes in the anime. Defaults to 0
if not aired or no information is available.
num_list_users
class-attribute
instance-attribute
The number of users that added the anime to their lists. Defaults to None
if information is not available.
num_scoring_users
class-attribute
instance-attribute
The number of users that scored the anime. Defaults to None
if information is not available.
pictures
class-attribute
instance-attribute
The list of urls for medium and large sized images related to the anime. Defaults to None
if information is not available.
rank
class-attribute
instance-attribute
The rank of the anime on MAL. Defaults to None
if information is not available.
recommendations
class-attribute
instance-attribute
The recommended anime by other users. Defaults to None
if information is not available.
related_anime
class-attribute
instance-attribute
The other anime that are related to the current anime. Defaults to None
if information is not available.
start_date
instance-attribute
The anime's airing start date. For anime that are not aired, the date might be defaulted to first of the month.
start_season
class-attribute
instance-attribute
The season in which the anime started airing. Defaults to None
if not aired or information is not available.
statistics
class-attribute
instance-attribute
Represents different statistics related to the anime. Defaults to None
if information is not available.
studios
class-attribute
instance-attribute
The studios that produced the anime. Defaults to None
if information is not available.
AnimeList
AnimeListStatus
Bases: BaseModel
Represents the anime list status model.
Source code in aniwrap/models/user.py
finish_date
class-attribute
instance-attribute
The date on which the user finished watching the anime.
is_rewatching
class-attribute
instance-attribute
Rewatch status. Defaults to False
num_episodes_watched
class-attribute
instance-attribute
The number of episodes watched. Defaults to 0
score
class-attribute
instance-attribute
The score of the anime in the list. Defaults to 0
start_date
class-attribute
instance-attribute
The date on which the user started watching the anime.
AnimeListUpdate
Bases: BaseModel
Represents different params present in anime list update.
Source code in aniwrap/models/user.py
is_rewatching
class-attribute
instance-attribute
Rewatch status. Defaults to False
num_episodes_watched
class-attribute
instance-attribute
The number of episodes watched. Defaults to 0
num_times_rewatched
class-attribute
instance-attribute
The number of times anime is rewatched.
priority
class-attribute
instance-attribute
The anime priority.
score
class-attribute
instance-attribute
The score of the anime in the list. Defaults to 0
AnimeRanking
Represents all the fields that contain in Anime Ranking result.
Source code in aniwrap/models/anime.py
AnimeStatistics
Bases: BaseModel
Represents the model for statistics of the anime.
Source code in aniwrap/models/anime.py
num_list_users
class-attribute
instance-attribute
The total number of users that added this anime to their lists.
AnimeStatisticsStatus
Bases: BaseModel
Represents the model for anime statistics.
Source code in aniwrap/models/anime.py
completed
class-attribute
instance-attribute
The number of users that completed the anime.
dropped
class-attribute
instance-attribute
The number of users that dropped the anime.
on_hold
class-attribute
instance-attribute
The number of users that put the anime on hold.
plan_to_watch
class-attribute
instance-attribute
The number of users that are planning to watch the anime.
Author
AuthorName
BaseModel
Broadcast
CommonModel
Bases: BaseModel
Represents a common model - contains id
and name
.
Source code in aniwrap/models/common.py
Forum
ForumBoard
Bases: BaseModel
Represnts a forum board model.
Source code in aniwrap/models/forum.py
description
class-attribute
instance-attribute
The description of the board.
subboards
class-attribute
instance-attribute
The list of sub boards.
ForumPost
Bases: BaseModel
Represents a forum post model.
Source code in aniwrap/models/forum.py
ForumSubBoard
ForumTopic
Bases: BaseModel
Represents all fields a forum topic can contain.
Source code in aniwrap/models/forum.py
created_by
instance-attribute
The details of the user that created the topic.
last_post_created_at
instance-attribute
The date of the latest post under the topic.
last_post_created_by
instance-attribute
The details of the user that created the last post under the topic.
ForumTopicDetails
GenerateRoute
Source code in aniwrap/models/route.py
with_data
with_params
HttpErrorResponse
HttpSuccessResponse
Manga
Bases: BaseModel
Represents model for all the fields a manga can contain.
Source code in aniwrap/models/manga.py
alternative_titles
instance-attribute
The Alternative titles for the Manga. Contains synonyms, Japanese title and any other English title.
background
class-attribute
instance-attribute
Some extra information related to the manga.
end_date
class-attribute
instance-attribute
The Manga end date.
genres
instance-attribute
The list of genres to which the manga belongs to.
main_picture
instance-attribute
The urls for medium and large sized images of the posters.
mean
class-attribute
instance-attribute
The score of the manga on MAL. Defaults to None
for manga that are not published yet.
num_chapters
instance-attribute
The total number of the chapters present in the Manga.
num_list_users
class-attribute
instance-attribute
The number of users that added the manga to their lists.
num_scoring_users
class-attribute
instance-attribute
The number of users that scored the manga.
num_volumes
instance-attribute
The number of volumes of the manga that are currently published.
pictures
class-attribute
instance-attribute
The list of urls for medium and large sized images related to the anime. Defaults to None
if information is not available.
rank
class-attribute
instance-attribute
The rank of the Manga.
recommendations
class-attribute
instance-attribute
The recommended manga by other users.
related_manga
class-attribute
instance-attribute
The other manga that are related to the current manga.
synopsis
class-attribute
instance-attribute
The synopsis of the Manga.
MangaList
MangaListStatus
Bases: BaseModel
Represents the Manga list status model.
Source code in aniwrap/models/user.py
finish_date
class-attribute
instance-attribute
The date on which the user finished reading the manga.
num_chapters_read
class-attribute
instance-attribute
The number of chapters read in the manga.
num_volumes_read
class-attribute
instance-attribute
The number of volumes read in the manga.
start_date
class-attribute
instance-attribute
The date on which the user started reading the manga.
MangaListUpdate
Bases: BaseModel
Represents different params present in manga list update.
Source code in aniwrap/models/user.py
num_chapters_read
class-attribute
instance-attribute
The number of chapters read in the manga. Defaults to 0
num_times_reread
class-attribute
instance-attribute
The manga reread times.
num_volumes_read
class-attribute
instance-attribute
The number of volumes read in the manga. Defaults to 0
priority
class-attribute
instance-attribute
The manga priority in the list.
score
class-attribute
instance-attribute
The score of the manga in the list. Defaults to 0
MangaRanking
Bases: BaseModel
Represents all the fields that contain in Manga Ranking result.
Source code in aniwrap/models/manga.py
OptionalPictureModel
Bases: BaseModel
Represents a model for the picture type fields.
Source code in aniwrap/models/common.py
PictureModel
PostCreator
RankingModel
RecommendationModel
Bases: BaseModel
Represents the recommendation type model.
Source code in aniwrap/models/common.py
node
class-attribute
instance-attribute
Contains details of the recommended anime/manga.
RelatedMaterialModel
Bases: BaseModel
Represents related anime/manga model.
Source code in aniwrap/models/common.py
node
class-attribute
instance-attribute
Contains details of the related anime/manga.
relation_type
class-attribute
instance-attribute
Unformatted representation of the way this anime/manga is related to the parent anime/manga.
RelatedMaterialNodeModel
Bases: BaseModel
Represents individual node of the related material model.
Source code in aniwrap/models/common.py
id
class-attribute
instance-attribute
The id of the related anime/manga.
main_picture
class-attribute
instance-attribute
The urls for medium and large sized pictures of the posters of the related anime/manga.
Route
Represents route details.
Source code in aniwrap/models/route.py
generate_route
Generate route.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
*args |
str | int
|
the arguments to insert. |
()
|
Returns:
Source code in aniwrap/models/route.py
Season
Bases: BaseModel
Represents the model for anime season details.
Source code in aniwrap/models/anime.py
Serialization
TitlesModel
Bases: BaseModel
Represents the model for alternative title fields.