Coverage for otaku_info/enums.py: 100%
Shortcuts on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""LICENSE
2Copyright 2020 Hermann Krumrey <hermann@krumreyh.com>
4This file is part of otaku-info.
6otaku-info is free software: you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation, either version 3 of the License, or
9(at your option) any later version.
11otaku-info is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
16You should have received a copy of the GNU General Public License
17along with otaku-info. If not, see <http://www.gnu.org/licenses/>.
18LICENSE"""
20from enum import Enum
23class MediaType(Enum):
24 """
25 Class that models a media type for media items
26 """
27 ANIME = "anime"
28 MANGA = "manga"
31class MediaSubType(Enum):
32 """
33 Class that models a media subtype for media items
34 """
35 TV = "tv"
36 TV_SHORT = "tv_short"
37 MOVIE = "movie"
38 SPECIAL = "special"
39 OVA = "ova"
40 ONA = "ona"
41 MUSIC = "music"
42 MANGA = "manga"
43 MANHWA = "manhwa"
44 NOVEL = "novel"
45 ONE_SHOT = "one_shot"
46 UNKNOWN = "unknown"
49class MediaRelationType(Enum):
50 """
51 Class that models a media relation type
52 """
53 ADAPTATION = "adaptation"
54 PREQUEL = "prequel"
55 SEQUEL = "sequel"
56 PARENT = "parent"
57 SIDE_STORY = "side_story"
58 CHARACTER = "character"
59 SUMMARY = "summary"
60 ALTERNATIVE = "alternative"
61 SPIN_OFF = "spin_off"
62 OTHER = "other"
63 SOURCE = "source"
64 COMPILATION = "compilation"
65 CONTAINS = "contains"
68class ListService(Enum):
69 """
70 Class that defines available list services
71 """
72 ANILIST = "anilist"
73 MYANIMELIST = "myanimelist"
74 MANGADEX = "mangadex"
75 MANGAUPDATES = "mangaupdates"
76 KITSU = "kitsu"
77 ANIMEPLANET = "animeplanet"
80class ReleasingState(Enum):
81 """
82 Class that defines possible releasing states
83 """
84 FINISHED = "finished"
85 RELEASING = "releasing"
86 NOT_YET_RELEASED = "not_yet_released"
87 CANCELLED = "cancelled"
88 UNKNOWN = "unknown"
91class ConsumingState(Enum):
92 """
93 Class that defines the possible consuming states for a user and media item
94 """
95 CURRENT = "current"
96 PLANNING = "planning"
97 COMPLETED = "completed"
98 DROPPED = "dropped"
99 PAUSED = "paused"
100 REPEATING = "repeating"
103class NotificationType(Enum):
104 """
105 Class that defines the possible notification types
106 """
107 NEW_MANGA_CHAPTERS = "new_manga_chapters"
108 NEW_ANIME_EPISODES = "new_anime_episodes"