⛩️ Anime

class anmoku.resources.anime.anime.Anime(data: JikanResponseData[AnimeData])[source]

Bases: JikanResource

Get or search for anime.

[jikan]

Required Params

  • id - Manga ID


⭐ Example:

Here’s an example of how to get an anime by ID and display it’s cover art:

from anmoku import Anime, Anmoku

client = Anmoku()

anime = client.get(Anime, id = 13759)

print(
    f"Got the anime '{anime.name}', it's english name is '{anime.name.english}' and it was aired in {anime.aired.from_.year}."
)

# Display it's image.
anime.image.get_image().show()
aired: DateRange

To when and from this anime was aired.

approved: bool

Whether the entry is pending approval on MAL or not.

audience_rating: MALRatings | None = None

Audience rating of this anime.

background: str | None = None
data: JikanResponseData[AnimeData]
description: str | None = None
duration: str | None = None

Duration of each episode of an anime or complete duration of an anime film.

episodes: int = 0

Episode count of the anime.

favourites: int = 0
id: int

The MyAnimeList ID of the anime.

image: Image

The banner image of the anime.

members: int = 0
name: Title

Alias to Anime.title.

popularity: int = 0
rank: int = 0
score: float = 0.0

The anime’s score rating.

scored_by: int = 0

Number of users that scored the anime.

season: AnimeSeason | None = None
source: str | None = None

The original material / source the anime was adapted from.

status: AiringStatus = 'Not yet aired'

The airing status of the anime.

synopsis: str | None = None
title: Title

The anime’s title.

trailer: Trailer

The trailer of the anime.

type: AnimeTypesData

The type of anime.

url: str

The MyAnimeList URL to this anime.

year: int = 0
class anmoku.resources.anime.anime.FullAnime(data: 'JikanResponseData[FullAnimeData]')[source]

Bases: Anime

data: JikanResponseData[FullAnimeData]
class anmoku.resources.anime.characters.AnimeCharacters(data: JikanResponseData[List[AnimeCharacterData]])[source]

Bases: JikanIterableResource

Get data of the characters from a particular anime.

Required Params

  • id - Anime ID


⭐ Example:

To get characters from an AnimeCharacter object you must iterate over it like so:

from anmoku import Anmoku, AnimeCharacters

client = Anmoku(debug = True)

anime_characters = client.get(AnimeCharacters, id = 28851) # ID for the anime film "A Silent Voice".

for character in anime_characters:
    print(f"{character.name} ({character.url})")

client.close()
data: JikanResponseData[List[AnimeCharacterData]]
class anmoku.resources.anime.episodes.AnimeEpisodes(data: JikanPageResponseData[List[AnimeEpisodeData]])[source]

Bases: JikanIterableResource

Get an anime’s episodes with anime’s ID.


Required Params

  • id - Anime ID

data: JikanPageResponseData[List[AnimeEpisodeData]]
class anmoku.resources.anime.episodes.SingleAnimeEpisode(data: JikanResponseData[SingleAnimeEpisodeData])[source]

Bases: JikanResource

Get’s the exact anime episode specified with the ID of the anime and the episode number.

Required Params

  • id - Anime ID

  • episode - Episode number


⭐ Example

This is how to get an anime episode directly with episode number and anime ID:

from anmoku import Anmoku, SingleAnimeEpisode

client = Anmoku()

# As you can see this request requires an extra argument (episode).
episode = client.get(SingleAnimeEpisode, id = 1, episode = 2)

print(f"You requested episode {episode.number}, it's named '{episode.name}' and was released...")
aired: datetime | None = None

The date this episode was aired.

data: JikanResponseData[SingleAnimeEpisodeData]
duration: timedelta | None = None

The duration of the episode.

filler: bool

Is the episode a filler episode.

id: int

The MyAnimeList ID of the episode.

name: Title

Aliases for title.

number: int

The episode number.

recap: bool

Is this episode a recap episode.

synopsis: str | None

This episode’s synopsis.

title: Title

The title of the anime episode.

url: str

The MyAnimeList URL to this episode.

class anmoku.resources.anime.staff.AnimeStaff(data: JikanResponseData[List[AnimeStaffData]])[source]

Bases: JikanResource

Get data of the staff from a particular anime.

data: JikanResponseData[List[AnimeStaffData]]