enums
Module for all enums related to the project.
AnimeListSortType
Bases: BaseEnum
Represents the different sort types of user anime list.
Source code in aniwrap/enums/user.py
AnimeStartDate
class-attribute
instance-attribute
Sorts the anime list in the descending order of anime start date.
AnimeTitle
class-attribute
instance-attribute
Sorts the anime list in the ascending order of anime title.
ListScore
class-attribute
instance-attribute
Sorts the anime list in the descending order of score.
AnimeRankingType
Bases: BaseEnum
Represents the anime ranking type.
Source code in aniwrap/enums/anime.py
ByPopularity
class-attribute
instance-attribute
Represents top anime by popularity.
AnimeRewatchValue
AnimeSeason
Bases: BaseEnum
Represents anime Season.
Source code in aniwrap/enums/anime.py
Fall
class-attribute
instance-attribute
Represents fall - October, November, December.
Summer
class-attribute
instance-attribute
Represents summer - July, August, September.
AnimeSortType
Bases: BaseEnum
Represents the type of ways anime result can be sorted.
Source code in aniwrap/enums/anime.py
AnimeScore
class-attribute
instance-attribute
Sorts the anime result based on score of the anime on mal in descending order.
AnimeStatus
Bases: BaseEnum
Represents all available Anime status.
Source code in aniwrap/enums/anime.py
Airing
class-attribute
instance-attribute
Represents currently airing anime
Finished
class-attribute
instance-attribute
Represents anime that are finished airing.
AnimeType
AnimeWatchStatus
Bases: BaseEnum
Represents the status of anime in the user's anime list.
Source code in aniwrap/enums/user.py
BaseEnum
Bases: Enum
BaseEnum from which all the other enums inherit from.
Source code in aniwrap/enums/base.py
from_str
classmethod
Generate the enum from the given string value.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value |
str
|
The string value to generate from. |
required |
Returns:
Type | Description |
---|---|
T
|
The generated enum. |
try_from_str
classmethod
Try to generate the enum from the given value.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value |
str
|
the string value to generate the enum from. |
required |
Returns:
Type | Description |
---|---|
T | None
|
The generated enum or |
Source code in aniwrap/enums/base.py
ListPriority
MangaListSortType
Bases: BaseEnum
Represents the different sort types of user manga list.
Source code in aniwrap/enums/user.py
ListScore
class-attribute
instance-attribute
Sorts the manga list in the descending of the score.
ListUpdatedAt
class-attribute
instance-attribute
Sorts the manga list in the descending of the last updated time.
MangaStartDate
class-attribute
instance-attribute
Sorts the manga list in the descending of the manga start date.
MangaRankingType
Bases: BaseEnum
Represents the manga ranking type.
Source code in aniwrap/enums/manga.py
All
class-attribute
instance-attribute
Represents top series - includes Manga, Novels, Manhwa etc.
ByPopularity
class-attribute
instance-attribute
Represents top series by popularity.
MangaReadStatus
Bases: BaseEnum
Represents the status of the manga in user's list.