animedex.backends.anilist
High-level AniList Python API.
Each public function corresponds to a subcommand of
animedex anilist. The function takes typed arguments, calls
animedex.api.anilist.call() to issue the GraphQL request,
parses the body, and returns a typed dataclass from
animedex.backends.anilist.models.
Token-required Query roots (Viewer, Notification,
Markdown, AniChartUser) are exposed as functions that
unconditionally raise ApiError(reason="auth-required")
until the OAuth flow lands; the corresponding CLI subcommands
surface that as a clean error.
- animedex.backends.anilist._mapper
- map_media
- map_media_list
- map_character
- map_character_list
- map_staff
- map_staff_list
- map_studio
- map_studio_list
- map_user
- map_user_list
- map_genre_collection
- map_media_tag_collection
- map_site_statistics
- map_external_link_source
- map_airing_schedule
- map_media_trend
- map_review
- map_recommendation
- map_thread
- map_thread_comment
- map_activity
- map_activity_reply
- map_follow
- map_media_list_public
- map_viewer
- map_notification
- map_markdown
- map_ani_chart_user
- map_media_list_collection_public
- animedex.backends.anilist._queries
- Q_MEDIA_BY_ID
- Q_MEDIA_SEARCH
- Q_CHARACTER_BY_ID
- Q_CHARACTER_SEARCH
- Q_STAFF_BY_ID
- Q_STAFF_SEARCH
- Q_STUDIO_BY_ID
- Q_STUDIO_SEARCH
- Q_SCHEDULE
- Q_TRENDING
- Q_USER_BY_NAME
- Q_USER_SEARCH
- Q_GENRE_COLLECTION
- Q_MEDIA_TAG_COLLECTION
- Q_SITE_STATISTICS
- Q_EXTERNAL_LINK_SOURCE_COLLECTION
- Q_AIRING_SCHEDULE
- Q_MEDIA_TREND
- Q_REVIEW
- Q_RECOMMENDATION
- Q_THREAD
- Q_THREAD_COMMENT
- Q_ACTIVITY
- Q_ACTIVITY_REPLY
- Q_FOLLOWING
- Q_FOLLOWER
- Q_MEDIA_LIST_PUBLIC
- Q_MEDIA_LIST_COLLECTION_PUBLIC
- Q_VIEWER
- Q_NOTIFICATION
- Q_MARKDOWN
- Q_ANI_CHART_USER
- animedex.backends.anilist.models
- AnilistAnime
- AnilistCharacter
- AnilistStaff
- AnilistStudio
- AnilistMediaTrend
- AnilistAiringSchedule
- AnilistReview
- AnilistRecommendation
- AnilistThread
- AnilistThreadComment
- AnilistActivity
- AnilistActivityReply
- AnilistFollowEntry
- AnilistMediaListEntry
- AnilistMediaListGroup
- AnilistMediaListCollection
- AnilistGenreCollection
- AnilistMediaTag
- AnilistSiteStatBucket
- AnilistSiteStatistics
- AnilistExternalLinkSource
- AnilistUserStatistics
- AnilistUser
- AnilistNotification
- AnilistMarkdown
- AnilistAniChartUser
- selftest
show
search
manga_search
character
character_search
staff
staff_search
studio
studio_search
schedule
trending
user
user_search
genre_collection
- animedex.backends.anilist.genre_collection(*, config: Config | None = None, **kw) AnilistGenreCollection[source]
The full AniList genre vocabulary.
media_tag_collection
site_statistics
- animedex.backends.anilist.site_statistics(*, config: Config | None = None, **kw) AnilistSiteStatistics[source]
AniList-wide entity counts (latest snapshot row per category).
external_link_source_collection
- animedex.backends.anilist.external_link_source_collection(media_type: str = 'ANIME', type: str = 'STREAMING', *, config: Config | None = None, **kw) List[AnilistExternalLinkSource][source]
List the registered external sites (streaming, info, social).
- Parameters:
media_type –
"ANIME"or"MANGA".type –
"STREAMING","INFO", or"SOCIAL".
airing_schedule
- animedex.backends.anilist.airing_schedule(*, media_id: int | None = None, not_yet_aired: bool | None = None, airing_at_greater: int | None = None, airing_at_lesser: int | None = None, per_page: int = 10, config: Config | None = None, **kw) List[AnilistAiringSchedule][source]
Upcoming-episode schedule, optionally filtered.