⛩️ Anime¶
- class anmoku.resources.anime.anime.Anime(data: JikanResponseData[AnimeData])[source]¶
Bases:
JikanResource
Get or search for anime.
⭐ 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:
JikanResource
Get data of the characters from a particular anime.
⭐ 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]]¶