From acba196b915b4f8a640343a55432f1a1f191ee2d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 17 Mar 2024 20:34:04 +0000 Subject: [PATCH] Deployed 32a7869 with MkDocs version: 1.5.3 --- .nojekyll | 0 404.html | 461 + CNAME | 1 + api-reference/clients/index.html | 1897 ++++ api-reference/enums/index.html | 3571 +++++++ api-reference/exceptions/index.html | 1935 ++++ api-reference/models/index.html | 9487 +++++++++++++++++ api-reference/types/index.html | 832 ++ assets/_mkdocstrings.css | 109 + assets/images/favicon.png | Bin 0 -> 1870 bytes assets/javascripts/bundle.c8d2eff1.min.js | 29 + assets/javascripts/bundle.c8d2eff1.min.js.map | 7 + assets/javascripts/lunr/min/lunr.ar.min.js | 1 + assets/javascripts/lunr/min/lunr.da.min.js | 18 + assets/javascripts/lunr/min/lunr.de.min.js | 18 + assets/javascripts/lunr/min/lunr.du.min.js | 18 + assets/javascripts/lunr/min/lunr.el.min.js | 1 + assets/javascripts/lunr/min/lunr.es.min.js | 18 + assets/javascripts/lunr/min/lunr.fi.min.js | 18 + assets/javascripts/lunr/min/lunr.fr.min.js | 18 + assets/javascripts/lunr/min/lunr.he.min.js | 1 + assets/javascripts/lunr/min/lunr.hi.min.js | 1 + assets/javascripts/lunr/min/lunr.hu.min.js | 18 + assets/javascripts/lunr/min/lunr.hy.min.js | 1 + assets/javascripts/lunr/min/lunr.it.min.js | 18 + assets/javascripts/lunr/min/lunr.ja.min.js | 1 + assets/javascripts/lunr/min/lunr.jp.min.js | 1 + assets/javascripts/lunr/min/lunr.kn.min.js | 1 + assets/javascripts/lunr/min/lunr.ko.min.js | 1 + assets/javascripts/lunr/min/lunr.multi.min.js | 1 + assets/javascripts/lunr/min/lunr.nl.min.js | 18 + assets/javascripts/lunr/min/lunr.no.min.js | 18 + assets/javascripts/lunr/min/lunr.pt.min.js | 18 + assets/javascripts/lunr/min/lunr.ro.min.js | 18 + assets/javascripts/lunr/min/lunr.ru.min.js | 18 + assets/javascripts/lunr/min/lunr.sa.min.js | 1 + .../lunr/min/lunr.stemmer.support.min.js | 1 + assets/javascripts/lunr/min/lunr.sv.min.js | 18 + assets/javascripts/lunr/min/lunr.ta.min.js | 1 + assets/javascripts/lunr/min/lunr.te.min.js | 1 + assets/javascripts/lunr/min/lunr.th.min.js | 1 + assets/javascripts/lunr/min/lunr.tr.min.js | 18 + assets/javascripts/lunr/min/lunr.vi.min.js | 1 + assets/javascripts/lunr/min/lunr.zh.min.js | 1 + assets/javascripts/lunr/tinyseg.js | 206 + assets/javascripts/lunr/wordcut.js | 6708 ++++++++++++ .../workers/search.b8dbb3d2.min.js | 42 + .../workers/search.b8dbb3d2.min.js.map | 7 + assets/logo.png | Bin 0 -> 74551 bytes assets/logo.svg | 34 + assets/stylesheets/main.7e359304.min.css | 1 + assets/stylesheets/main.7e359304.min.css.map | 1 + assets/stylesheets/palette.06af60db.min.css | 1 + .../stylesheets/palette.06af60db.min.css.map | 1 + index.html | 740 ++ objects.inv | Bin 0 -> 2977 bytes search/search_index.json | 1 + sitemap.xml | 3 + sitemap.xml.gz | Bin 0 -> 127 bytes 59 files changed, 26361 insertions(+) create mode 100644 .nojekyll create mode 100644 404.html create mode 100644 CNAME create mode 100644 api-reference/clients/index.html create mode 100644 api-reference/enums/index.html create mode 100644 api-reference/exceptions/index.html create mode 100644 api-reference/models/index.html create mode 100644 api-reference/types/index.html create mode 100644 assets/_mkdocstrings.css create mode 100644 assets/images/favicon.png create mode 100644 assets/javascripts/bundle.c8d2eff1.min.js create mode 100644 assets/javascripts/bundle.c8d2eff1.min.js.map create mode 100644 assets/javascripts/lunr/min/lunr.ar.min.js create mode 100644 assets/javascripts/lunr/min/lunr.da.min.js create mode 100644 assets/javascripts/lunr/min/lunr.de.min.js create mode 100644 assets/javascripts/lunr/min/lunr.du.min.js create mode 100644 assets/javascripts/lunr/min/lunr.el.min.js create mode 100644 assets/javascripts/lunr/min/lunr.es.min.js create mode 100644 assets/javascripts/lunr/min/lunr.fi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.fr.min.js create mode 100644 assets/javascripts/lunr/min/lunr.he.min.js create mode 100644 assets/javascripts/lunr/min/lunr.hi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.hu.min.js create mode 100644 assets/javascripts/lunr/min/lunr.hy.min.js create mode 100644 assets/javascripts/lunr/min/lunr.it.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ja.min.js create mode 100644 assets/javascripts/lunr/min/lunr.jp.min.js create mode 100644 assets/javascripts/lunr/min/lunr.kn.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ko.min.js create mode 100644 assets/javascripts/lunr/min/lunr.multi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.nl.min.js create mode 100644 assets/javascripts/lunr/min/lunr.no.min.js create mode 100644 assets/javascripts/lunr/min/lunr.pt.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ro.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ru.min.js create mode 100644 assets/javascripts/lunr/min/lunr.sa.min.js create mode 100644 assets/javascripts/lunr/min/lunr.stemmer.support.min.js create mode 100644 assets/javascripts/lunr/min/lunr.sv.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ta.min.js create mode 100644 assets/javascripts/lunr/min/lunr.te.min.js create mode 100644 assets/javascripts/lunr/min/lunr.th.min.js create mode 100644 assets/javascripts/lunr/min/lunr.tr.min.js create mode 100644 assets/javascripts/lunr/min/lunr.vi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.zh.min.js create mode 100644 assets/javascripts/lunr/tinyseg.js create mode 100644 assets/javascripts/lunr/wordcut.js create mode 100644 assets/javascripts/workers/search.b8dbb3d2.min.js create mode 100644 assets/javascripts/workers/search.b8dbb3d2.min.js.map create mode 100644 assets/logo.png create mode 100644 assets/logo.svg create mode 100644 assets/stylesheets/main.7e359304.min.css create mode 100644 assets/stylesheets/main.7e359304.min.css.map create mode 100644 assets/stylesheets/palette.06af60db.min.css create mode 100644 assets/stylesheets/palette.06af60db.min.css.map create mode 100644 index.html create mode 100644 objects.inv create mode 100644 search/search_index.json create mode 100644 sitemap.xml create mode 100644 sitemap.xml.gz diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/404.html b/404.html new file mode 100644 index 0000000..d40063e --- /dev/null +++ b/404.html @@ -0,0 +1,461 @@ + + + +
+ + + + + + + + + + + + + + + + + + +
Anilist
+
+
+Anilist(api_url: str = 'https://graphql.anilist.co', retries: int = 5, **httpx_client_kwargs: Any)
+
Anilist API client.
+ + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
api_url |
+
+ str
+ |
+
+
+
+ The URL of the Anilist API. Default is "https://graphql.anilist.co". + |
+
+ 'https://graphql.anilist.co'
+ |
+
retries |
+
+ int
+ |
+
+
+
+ Number of times to retry a failed request before raising an error. Default is 5. + |
+
+ 5
+ |
+
httpx_client_kwargs |
+
+ Any
+ |
+
+
+
+ Keyword arguments to pass to the internal httpx.Client() +used to make the POST request. + |
+
+ {}
+ |
+
src/pyanilist/_clients/_sync.py
search
+
+
+search(title: AnilistTitle, season: MediaSeason | None = None, season_year: AnilistYear | None = None, type: MediaType | None = None, format: MediaFormat | None = None, status: MediaStatus | None = None) -> Media
+
Search for media on Anilist based on the provided parameters.
+ + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
title |
+
+ AnilistTitle | None
+ |
+
+
+
+ The string used for searching on Anilist. + |
+ + required + | +
season |
+
+ MediaSeason | None
+ |
+
+
+
+ The season the media was initially released in. Default is None. + |
+
+ None
+ |
+
season_year |
+
+ AnilistYear | None
+ |
+
+
+
+ The season year the media was initially released in. Default is None. + |
+
+ None
+ |
+
type |
+
+ MediaType | None
+ |
+
+
+
+ The type of the media; anime or manga. Default is None. + |
+
+ None
+ |
+
format |
+
+ MediaFormat | None
+ |
+
+
+
+ The format the media was released in. Default is None. + |
+
+ None
+ |
+
status |
+
+ MediaStatus | None
+ |
+
+
+
+ The current releasing status of the media. Default is None. + |
+
+ None
+ |
+
Raises:
+Type | +Description | +
---|---|
+ ValidationError
+ |
+
+
+
+ Invalid input + |
+
+ pyanilist.exceptions.*
+ |
+
+
+
+ Any exception from the pyanilist.exceptions module may be raised +in case of errors encountered during the POST request. + |
+
Returns:
+Type | +Description | +
---|---|
+ Media
+ |
+
+
+
+ A Media object representing the retrieved media information. + |
+
src/pyanilist/_clients/_sync.py
get
+
+
+Retrieve media information from Anilist based on it's ID.
+ + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
id |
+
+ int
+ |
+
+
+
+ Anilist ID of the media as found in the URL: https://anilist.co/{type}/{id}. + |
+ + required + | +
Raises:
+Type | +Description | +
---|---|
+ ValidationError
+ |
+
+
+
+ Invalid input + |
+
+ pyanilist.exceptions.*
+ |
+
+
+
+ Any exception from the pyanilist.exceptions module may be raised +in case of errors encountered during the POST request. + |
+
Returns:
+Type | +Description | +
---|---|
+ Media
+ |
+
+
+
+ A Media object representing the retrieved media information. + |
+
src/pyanilist/_clients/_sync.py
AsyncAnilist
+
+
+AsyncAnilist(api_url: str = 'https://graphql.anilist.co', retries: int = 5, **httpx_async_client_kwargs: Any)
+
Async Anilist API client.
+ + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
api_url |
+
+ str
+ |
+
+
+
+ The URL of the Anilist API. Default is "https://graphql.anilist.co". + |
+
+ 'https://graphql.anilist.co'
+ |
+
retries |
+
+ int
+ |
+
+
+
+ Number of times to retry a failed request before raising an error. Default is 5. + |
+
+ 5
+ |
+
httpx_async_client_kwargs |
+
+ Any
+ |
+
+
+
+ Keyword arguments to pass to the internal httpx.AsyncClient() +used to make the POST request. + |
+
+ {}
+ |
+
src/pyanilist/_clients/_async.py
search
+
+
+
+ async
+
+
+search(title: AnilistTitle, season: MediaSeason | None = None, season_year: AnilistYear | None = None, type: MediaType | None = None, format: MediaFormat | None = None, status: MediaStatus | None = None) -> Media
+
Search for media on Anilist based on the provided parameters.
+ + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
title |
+
+ AnilistTitle | None
+ |
+
+
+
+ The string used for searching on Anilist. Default is None. + |
+ + required + | +
season |
+
+ MediaSeason | None
+ |
+
+
+
+ The season the media was initially released in. Default is None. + |
+
+ None
+ |
+
season_year |
+
+ AnilistYear | None
+ |
+
+
+
+ The season year the media was initially released in. Default is None. + |
+
+ None
+ |
+
type |
+
+ MediaType | None
+ |
+
+
+
+ The type of the media; anime or manga. Default is None. + |
+
+ None
+ |
+
format |
+
+ MediaFormat | None
+ |
+
+
+
+ The format the media was released in. Default is None. + |
+
+ None
+ |
+
status |
+
+ MediaStatus | None
+ |
+
+
+
+ The current releasing status of the media. Default is None. + |
+
+ None
+ |
+
Raises:
+Type | +Description | +
---|---|
+ ValidationError
+ |
+
+
+
+ Invalid input + |
+
+ pyanilist.exceptions.*
+ |
+
+
+
+ Any exception from the pyanilist.exceptions module may be raised +in case of errors encountered during the POST request. + |
+
Returns:
+Type | +Description | +
---|---|
+ Media
+ |
+
+
+
+ A Media object representing the retrieved media information. + |
+
src/pyanilist/_clients/_async.py
get
+
+
+
+ async
+
+
+Retrieve media information from Anilist based on it's ID.
+ + + +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
id |
+
+ int
+ |
+
+
+
+ Anilist ID of the media as found in the URL: https://anilist.co/{type}/{id}. + |
+ + required + | +
Raises:
+Type | +Description | +
---|---|
+ ValidationError
+ |
+
+
+
+ Invalid input + |
+
+ pyanilist.exceptions.*
+ |
+
+
+
+ Any exception from the pyanilist.exceptions module may be raised +in case of errors encountered during the POST request. + |
+
Returns:
+Type | +Description | +
---|---|
+ Media
+ |
+
+
+
+ A Media object representing the retrieved media information. + |
+
src/pyanilist/_clients/_async.py
CharacterRole
+
+
+
+ Bases: StrEnum
The role the character plays in the media
+ + + + +
BACKGROUND
+
+
+
+ class-attribute
+ instance-attribute
+
+
+A background character in the media
+
MAIN
+
+
+
+ class-attribute
+ instance-attribute
+
+
+A primary character role in the media
+
ExternalLinkType
+
+
+
+ Bases: StrEnum
External Link Type
+ + + + +
INFO
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Informational site
+
SOCIAL
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Social media site
+
MediaFormat
+
+
+
+ Bases: StrEnum
The format the media was released in.
+ + + + +
MANGA
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Professionally published manga with more than one chapter
+
MOVIE
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Anime movies with a theatrical release
+
MUSIC
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Short anime released as a music video
+
NOVEL
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Written books released as a series of light novels
+
ONA
+
+
+
+ class-attribute
+ instance-attribute
+
+
+(Original Net Animation) Anime that have been originally released online or are only available through streaming services.
+
ONE_SHOT
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Manga with just one chapter
+
OVA
+
+
+
+ class-attribute
+ instance-attribute
+
+
+(Original Video Animation) Anime that have been released directly on DVD/Blu-ray without originally going through a theatrical release or television broadcast
+
SPECIAL
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Special episodes that have been included in DVD/Blu-ray releases, picture dramas, pilots, etc
+
TV
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Anime broadcast on television
+
MediaRankType
+
+
+
+ Bases: StrEnum
The type of ranking
+ + + + +
POPULAR
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Ranking is based on the media's popularity
+
MediaRelation
+
+
+
+ Bases: StrEnum
Type of relation media has to its parent.
+ + + + +
ADAPTATION
+
+
+
+ class-attribute
+ instance-attribute
+
+
+An adaptation of this media into a different format
+
ALTERNATIVE
+
+
+
+ class-attribute
+ instance-attribute
+
+
+An alternative version of the same media
+
CHARACTER
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Shares at least 1 character
+
COMPILATION
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Version 2 only.
+
CONTAINS
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Version 2 only.
+
OTHER
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Other
+
PARENT
+
+
+
+ class-attribute
+ instance-attribute
+
+
+The media a side story is from
+
PREQUEL
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Released before the relation
+
SEQUEL
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Released after the relation
+
SIDE_STORY
+
+
+
+ class-attribute
+ instance-attribute
+
+
+A side story of the parent media
+
SOURCE
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Version 2 only. The source material the media was adapted from
+
SPIN_OFF
+
+
+
+ class-attribute
+ instance-attribute
+
+
+An alternative version of the media with a different primary focus
+
MediaSeason
+
+
+
+ Bases: StrEnum
The season the media was initially released in.
+ + + + +
FALL
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Months September to November
+
SPRING
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Months March to May
+
SUMMER
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Months June to August
+
MediaSource
+
+
+
+ Bases: StrEnum
Source type the media was adapted from.
+ + + + +
ANIME
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Version 2+ only. Japanese Anime
+
COMIC
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Version 3 only. Comics excluding manga
+
DOUJINSHI
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Version 2+ only. Self-published works
+
GAME
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Version 3 only. Games excluding video games
+
LIGHT_NOVEL
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Written work published in volumes
+
LIVE_ACTION
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Version 3 only. Live action media such as movies or TV show
+
MANGA
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Asian comic book
+
MULTIMEDIA_PROJECT
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Version 3 only. Multimedia project
+
NOVEL
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Version 2+ only. Written works not published in volumes
+
ORIGINAL
+
+
+
+ class-attribute
+ instance-attribute
+
+
+An original production not based of another work
+
OTHER
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Other
+
PICTURE_BOOK
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Version 3 only. Picture book
+
VIDEO_GAME
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Video game
+
VISUAL_NOVEL
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Video game driven primary by text and narrative
+
MediaStatus
+
+
+
+ Bases: StrEnum
The current releasing status of the media.
+ + + + +
CANCELLED
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Ended before the work could be finished
+
FINISHED
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Has completed and is no longer being released
+
HIATUS
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Version 2 only. Is currently paused from releasing and will resume at a later date
+
NOT_YET_RELEASED
+
+
+
+ class-attribute
+ instance-attribute
+
+
+To be released at a later date
+
MediaType
+
+
+
+ Bases: StrEnum
The type of the media; anime or manga.
+ + + + + + +
CloseError
+
+
+CloseError(message: str, *, request: Request | None = None)
+
+ Bases: NetworkError
Failed to close a connection.
+ + +
ConnectError
+
+
+ConnectError(message: str, *, request: Request | None = None)
+
+ Bases: NetworkError
Failed to establish a connection.
+ + +
ConnectTimeout
+
+
+ConnectTimeout(message: str, *, request: Request | None = None)
+
+ Bases: TimeoutException
Timed out while connecting to the host.
+ + +
CookieConflict
+
+
+CookieConflict(message: str)
+
+ Bases: Exception
Attempted to lookup a cookie by name, but multiple cookies existed.
+Can occur when calling response.cookies.get(...)
.
DecodingError
+
+
+DecodingError(message: str, *, request: Request | None = None)
+
+ Bases: RequestError
Decoding of the response failed, due to a malformed encoding.
+ + +
HTTPError
+
+
+HTTPError(message: str)
+
+ Bases: Exception
Base class for RequestError
and HTTPStatusError
.
Useful for try...except
blocks when issuing a request,
+and then calling .raise_for_status()
.
For example:
+try:
+ response = httpx.get("https://www.example.com")
+ response.raise_for_status()
+except httpx.HTTPError as exc:
+ print(f"HTTP Exception for {exc.request.url} - {exc}")
+
HTTPStatusError
+
+
+HTTPStatusError(message: str, *, request: Request, response: Response)
+
+ Bases: HTTPError
The response had an error HTTP status of 4xx or 5xx.
+May be raised when calling response.raise_for_status()
InvalidURL
+
+
+InvalidURL(message: str)
+
+ Bases: Exception
URL is improperly formed or cannot be parsed.
+ + + + +
LocalProtocolError
+
+
+LocalProtocolError(message: str, *, request: Request | None = None)
+
+ Bases: ProtocolError
A protocol was violated by the client.
+For example if the user instantiated a Request
instance explicitly,
+failed to include the mandatory Host:
header, and then issued it directly
+using client.send()
.
NetworkError
+
+
+NetworkError(message: str, *, request: Request | None = None)
+
+ Bases: TransportError
The base class for network-related errors.
+An error occurred while interacting with the network.
+ + +
PoolTimeout
+
+
+PoolTimeout(message: str, *, request: Request | None = None)
+
+ Bases: TimeoutException
Timed out waiting to acquire a connection from the pool.
+ + +
ProtocolError
+
+
+ProtocolError(message: str, *, request: Request | None = None)
+
+ Bases: TransportError
The protocol was violated.
+ + +
ProxyError
+
+
+ProxyError(message: str, *, request: Request | None = None)
+
+ Bases: TransportError
An error occurred while establishing a proxy connection.
+ + +
ReadError
+
+
+ReadError(message: str, *, request: Request | None = None)
+
+ Bases: NetworkError
Failed to receive data from the network.
+ + +
ReadTimeout
+
+
+ReadTimeout(message: str, *, request: Request | None = None)
+
+ Bases: TimeoutException
Timed out while receiving data from the host.
+ + +
RemoteProtocolError
+
+
+RemoteProtocolError(message: str, *, request: Request | None = None)
+
+ Bases: ProtocolError
The protocol was violated by the server.
+For example, returning malformed HTTP.
+ + +
RequestError
+
+
+RequestError(message: str, *, request: Request | None = None)
+
+ Bases: HTTPError
Base class for all exceptions that may occur when issuing a .request()
.
RequestNotRead
+
+
+
+ Bases: StreamError
Attempted to access streaming request content, without having called read()
.
ResponseNotRead
+
+
+
+ Bases: StreamError
Attempted to access streaming response content, without having called read()
.
StreamClosed
+
+
+
+ Bases: StreamError
Attempted to read or stream response content, but the request has been +closed.
+ + + + +
StreamConsumed
+
+
+
+ Bases: StreamError
Attempted to read or stream content, but the content has already +been streamed.
+ + + + +
StreamError
+
+
+StreamError(message: str)
+
+ Bases: RuntimeError
The base class for stream exceptions.
+The developer made an error in accessing the request stream in +an invalid way.
+ + + + +
TimeoutException
+
+
+TimeoutException(message: str, *, request: Request | None = None)
+
+ Bases: TransportError
The base class for timeout errors.
+An operation has timed out.
+ + +
TooManyRedirects
+
+
+TooManyRedirects(message: str, *, request: Request | None = None)
+
+ Bases: RequestError
Too many redirects.
+ + +
UnsupportedProtocol
+
+
+UnsupportedProtocol(message: str, *, request: Request | None = None)
+
+ Bases: TransportError
Attempted to make a request to an unsupported protocol.
+For example issuing a request to ftp://www.example.com
.
WriteError
+
+
+WriteError(message: str, *, request: Request | None = None)
+
+ Bases: NetworkError
Failed to send data through the network.
+ + +
WriteTimeout
+
+
+WriteTimeout(message: str, *, request: Request | None = None)
+
+ Bases: TimeoutException
Timed out while sending data to the host.
+ + +
ValidationError
+
+
+
+ module-attribute
+
+
+ValidationError = ValidationError
+
Media
+
+
+
+ Bases: ParentModel
Anime or Manga.
+ + + + +
average_score
+
+
+
+ class-attribute
+ instance-attribute
+
+
+average_score: int | None = None
+
A weighted average score of all the user's scores of the media
+
banner_image
+
+
+
+ class-attribute
+ instance-attribute
+
+
+banner_image: HttpUrl | None = None
+
The banner image of the media
+
chapters
+
+
+
+ class-attribute
+ instance-attribute
+
+
+chapters: int | None = None
+
The amount of chapters the manga has when complete
+
characters
+
+
+
+ class-attribute
+ instance-attribute
+
+
+The characters in the media
+
country_of_origin
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Where the media was created. (ISO 3166-1 alpha-2)
+
cover_image
+
+
+
+ class-attribute
+ instance-attribute
+
+
+cover_image: MediaCoverImage = MediaCoverImage()
+
The cover images of the media
+
description
+
+
+
+ class-attribute
+ instance-attribute
+
+
+description: str | None = None
+
Short description of the media's story and characters
+
duration
+
+
+
+ class-attribute
+ instance-attribute
+
+
+duration: int | None = None
+
The general length of each anime episode in minutes
+
end_date
+
+
+
+ class-attribute
+ instance-attribute
+
+
+The last official release date of the media
+
episodes
+
+
+
+ class-attribute
+ instance-attribute
+
+
+episodes: int | None = None
+
The amount of episodes the anime has when complete
+
external_links
+
+
+
+ class-attribute
+ instance-attribute
+
+
+external_links: tuple[MediaExternalLink, ...] = tuple()
+
External links to another site related to the media
+
favourites
+
+
+
+ class-attribute
+ instance-attribute
+
+
+favourites: int | None = None
+
The amount of user's who have favourited the media
+
format
+
+
+
+ class-attribute
+ instance-attribute
+
+
+format: MediaFormat | None = None
+
The format the media was released in
+
genres
+
+
+
+ class-attribute
+ instance-attribute
+
+
+The genres of the media
+
hashtag
+
+
+
+ class-attribute
+ instance-attribute
+
+
+hashtag: str | None = None
+
Official Twitter hashtags for the media
+
id_mal
+
+
+
+ class-attribute
+ instance-attribute
+
+
+id_mal: int | None = None
+
The mal id of the media
+
is_adult
+
+
+
+ class-attribute
+ instance-attribute
+
+
+is_adult: bool | None = None
+
If the media is intended only for 18+ adult audiences
+
is_licensed
+
+
+
+ class-attribute
+ instance-attribute
+
+
+is_licensed: bool | None = None
+
If the media is officially licensed or a self-published doujin release
+
is_locked
+
+
+
+ class-attribute
+ instance-attribute
+
+
+is_locked: bool | None = None
+
Locked media may not be added to lists our favorited. This may be due to the entry pending for deletion or other reasons.
+
mean_score
+
+
+
+ class-attribute
+ instance-attribute
+
+
+mean_score: int | None = None
+
Mean score of all the user's scores of the media
+
next_airing_episode
+
+
+
+ class-attribute
+ instance-attribute
+
+
+next_airing_episode: AiringSchedule = AiringSchedule()
+
The media's next episode airing schedule
+
popularity
+
+
+
+ class-attribute
+ instance-attribute
+
+
+popularity: int | None = None
+
The number of users with the media on their list
+
rankings
+
+
+
+ class-attribute
+ instance-attribute
+
+
+The ranking of the media in a particular time span and format compared to other media
+
relations
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Other media in the same or connecting franchise
+
season
+
+
+
+ class-attribute
+ instance-attribute
+
+
+season: MediaSeason | None = None
+
The season the media was initially released in
+
season_int
+
+
+
+ class-attribute
+ instance-attribute
+
+
+season_int: int | None = None
+
The year & season the media was initially released in
+
season_year
+
+
+
+ class-attribute
+ instance-attribute
+
+
+season_year: int | None = None
+
The season year the media was initially released in
+
site_url
+
+
+
+ instance-attribute
+
+
+site_url: HttpUrl
+
The url for the media page on the AniList website
+
source
+
+
+
+ class-attribute
+ instance-attribute
+
+
+source: MediaSource | None = None
+
Source type the media was adapted from.
+
staff
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Animation or production company
+
start_date
+
+
+
+ class-attribute
+ instance-attribute
+
+
+The first official release date of the media
+
status
+
+
+
+ class-attribute
+ instance-attribute
+
+
+status: MediaStatus | None = None
+
The current releasing status of the media
+
streaming_episodes
+
+
+
+ class-attribute
+ instance-attribute
+
+
+streaming_episodes: tuple[MediaStreamingEpisode, ...] = tuple()
+
Data and links to legal streaming episodes on external sites
+
studios
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Animation or production company
+
synonyms
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Alternative titles of the media
+
tags
+
+
+
+ class-attribute
+ instance-attribute
+
+
+List of tags that describes elements and themes of the media
+
title
+
+
+
+ class-attribute
+ instance-attribute
+
+
+title: MediaTitle = MediaTitle()
+
The official titles of the media in various languages
+
trailer
+
+
+
+ class-attribute
+ instance-attribute
+
+
+trailer: MediaTrailer = MediaTrailer()
+
Media trailer or advertisement
+
trending
+
+
+
+ class-attribute
+ instance-attribute
+
+
+trending: int | None = None
+
The amount of related activity in the past hour
+
type
+
+
+
+ class-attribute
+ instance-attribute
+
+
+type: MediaType | None = None
+
The type of the media; anime or manga
+
updated_at
+
+
+
+ instance-attribute
+
+
+updated_at: datetime
+
When the media's data was last updated
+
volumes
+
+
+
+ class-attribute
+ instance-attribute
+
+
+volumes: int | None = None
+
The amount of volumes the manga has when complete
+
AiringSchedule
+
+
+
+ Bases: ParentModel
Media Airing Schedule.
+ + + + +
airing_at
+
+
+
+ class-attribute
+ instance-attribute
+
+
+airing_at: int | None = None
+
The time the episode airs at
+
episode
+
+
+
+ class-attribute
+ instance-attribute
+
+
+episode: int | None = None
+
The airing episode number
+
id
+
+
+
+ class-attribute
+ instance-attribute
+
+
+id: int | None = None
+
The id of the airing schedule item
+
media_id
+
+
+
+ class-attribute
+ instance-attribute
+
+
+media_id: int | None = None
+
The associate media id of the airing episode
+
time_until_airing
+
+
+
+ class-attribute
+ instance-attribute
+
+
+time_until_airing: int | None = None
+
Seconds until episode starts airing
+
Character
+
+
+
+ Bases: ParentModel
A character that features in an anime or manga
+ + + + +
age
+
+
+
+ class-attribute
+ instance-attribute
+
+
+age: str | None = None
+
The character's age. Note this is a string, not an int, it may contain further text and additional ages.
+
blood_type
+
+
+
+ class-attribute
+ instance-attribute
+
+
+blood_type: str | None = None
+
The characters blood type
+
date_of_birth
+
+
+
+ class-attribute
+ instance-attribute
+
+
+The character's birth date
+
description
+
+
+
+ class-attribute
+ instance-attribute
+
+
+description: str | None = None
+
A general description of the character
+
favourites
+
+
+
+ class-attribute
+ instance-attribute
+
+
+favourites: int | None = None
+
The amount of user's who have favourited the character
+
gender
+
+
+
+ class-attribute
+ instance-attribute
+
+
+gender: str | None = None
+
The character's gender. Usually Male, Female, or Non-binary but can be any string.
+
image
+
+
+
+ class-attribute
+ instance-attribute
+
+
+image: CharacterImage = CharacterImage()
+
Character images
+
name
+
+
+
+ class-attribute
+ instance-attribute
+
+
+name: CharacterName = CharacterName()
+
The names of the character
+
role
+
+
+
+ class-attribute
+ instance-attribute
+
+
+role: CharacterRole | None = None
+
The characters role in the media
+
site_url
+
+
+
+ class-attribute
+ instance-attribute
+
+
+site_url: HttpUrl | None = None
+
The url for the character page on the AniList website
+
CharacterImage
+
+
+
+ Bases: ParentModel
Character's image
+ + + + +
large
+
+
+
+ class-attribute
+ instance-attribute
+
+
+large: HttpUrl | None = None
+
The character's image of media at its largest size
+
medium
+
+
+
+ class-attribute
+ instance-attribute
+
+
+medium: HttpUrl | None = None
+
The character's image of media at medium size
+
CharacterName
+
+
+
+ Bases: ParentModel
The names of the character
+ + + + +
alternative
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Other names the character might be referred to as
+
alternative_spoiler
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Other names the character might be referred to as but are spoilers
+
first
+
+
+
+ class-attribute
+ instance-attribute
+
+
+first: str | None = None
+
The character's given name
+
full
+
+
+
+ class-attribute
+ instance-attribute
+
+
+full: str | None = None
+
The character's first and last name
+
last
+
+
+
+ class-attribute
+ instance-attribute
+
+
+last: str | None = None
+
The character's surname
+
middle
+
+
+
+ class-attribute
+ instance-attribute
+
+
+middle: str | None = None
+
The character's middle name
+
native
+
+
+
+ class-attribute
+ instance-attribute
+
+
+native: str | None = None
+
The character's full name in their native language
+
FuzzyDate
+
+
+
+ Bases: ParentModel
Naive date object that allows for incomplete date values (fuzzy).
+ + + + +
day
+
+
+
+ class-attribute
+ instance-attribute
+
+
+day: int | None = None
+
Numeric Day (24)
+
month
+
+
+
+ class-attribute
+ instance-attribute
+
+
+month: int | None = None
+
Numeric Month (3)
+
year
+
+
+
+ class-attribute
+ instance-attribute
+
+
+year: int | None = None
+
Numeric Year (2017)
+
iso_format
+
+
+iso_format() -> str
+
Returns the date formatted as an ISO 8601 string.
+If year, month, and day are available, the format is "YYYY-MM-DD". +If only year and month are available, the format is "YYYY-MM". +If only year is available, the format is "YYYY". +If no information is available, an empty string is returned.
+ +src/pyanilist/_models.py
MediaCoverImage
+
+
+
+ Bases: ParentModel
The cover images of the media.
+ + + + +
color
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Average #hex color of cover image
+
extra_large
+
+
+
+ class-attribute
+ instance-attribute
+
+
+extra_large: HttpUrl | None = None
+
The cover image url of the media at its largest size. If this size isn't available, large will be provided instead.
+
large
+
+
+
+ class-attribute
+ instance-attribute
+
+
+large: HttpUrl | None = None
+
The cover image url of the media at a large size
+
medium
+
+
+
+ class-attribute
+ instance-attribute
+
+
+medium: HttpUrl | None = None
+
The cover image url of the media at medium size
+
MediaExternalLink
+
+
+
+ Bases: ParentModel
An external link to another site related to the media or staff member.
+ + + + +
color
+
+
+
+ class-attribute
+ instance-attribute
+
+
+
icon
+
+
+
+ class-attribute
+ instance-attribute
+
+
+icon: HttpUrl | None = None
+
The icon image url of the site. Not available for all links. Transparent PNG 64x64
+
id
+
+
+
+ class-attribute
+ instance-attribute
+
+
+id: int | None = None
+
The id of the external link
+
is_disabled
+
+
+
+ class-attribute
+ instance-attribute
+
+
+is_disabled: bool | None = None
+
language
+
+
+
+ class-attribute
+ instance-attribute
+
+
+language: str | None = None
+
Language the site content is in. See Staff language field for values.
+
notes
+
+
+
+ class-attribute
+ instance-attribute
+
+
+notes: str | None = None
+
site
+
+
+
+ class-attribute
+ instance-attribute
+
+
+site: str | None = None
+
The links website site name
+
site_id
+
+
+
+ class-attribute
+ instance-attribute
+
+
+site_id: int | None = None
+
The links website site id
+
type
+
+
+
+ class-attribute
+ instance-attribute
+
+
+type: ExternalLinkType | None = None
+
url
+
+
+
+ class-attribute
+ instance-attribute
+
+
+url: HttpUrl | None = None
+
The url of the external link or base url of link source
+
MediaRank
+
+
+
+ Bases: ParentModel
The ranking of a media in a particular time span and format compared to other media
+ + + + +
all_time
+
+
+
+ class-attribute
+ instance-attribute
+
+
+all_time: bool | None = None
+
If the ranking is based on all time instead of a season/year
+
context
+
+
+
+ class-attribute
+ instance-attribute
+
+
+context: str | None = None
+
String that gives context to the ranking type and time span
+
format
+
+
+
+ class-attribute
+ instance-attribute
+
+
+format: MediaFormat | None = None
+
The format the media is ranked within
+
id
+
+
+
+ class-attribute
+ instance-attribute
+
+
+id: int | None = None
+
The id of the rank
+
rank
+
+
+
+ class-attribute
+ instance-attribute
+
+
+rank: int | None = None
+
The numerical rank of the media
+
season
+
+
+
+ class-attribute
+ instance-attribute
+
+
+season: MediaSeason | None = None
+
The season the media is ranked within
+
type
+
+
+
+ class-attribute
+ instance-attribute
+
+
+type: MediaRankType | None = None
+
The type of ranking
+
year
+
+
+
+ class-attribute
+ instance-attribute
+
+
+year: int | None = None
+
The year the media is ranked within
+
MediaStreamingEpisode
+
+
+
+ Bases: ParentModel
Data and links to legal streaming episodes on external sites.
+ + + + +
site
+
+
+
+ class-attribute
+ instance-attribute
+
+
+site: str | None = None
+
The site location of the streaming episodes
+
thumbnail
+
+
+
+ class-attribute
+ instance-attribute
+
+
+thumbnail: HttpUrl | None = None
+
Url of episode image thumbnail
+
title
+
+
+
+ class-attribute
+ instance-attribute
+
+
+title: str | None = None
+
Title of the episode
+
url
+
+
+
+ class-attribute
+ instance-attribute
+
+
+url: HttpUrl | None = None
+
The url of the episode
+
MediaTag
+
+
+
+ Bases: ParentModel
A tag that describes a theme or element of the media.
+ + + + +
category
+
+
+
+ class-attribute
+ instance-attribute
+
+
+category: str | None = None
+
The categories of tags this tag belongs to
+
description
+
+
+
+ class-attribute
+ instance-attribute
+
+
+description: str | None = None
+
A general description of the tag
+
id
+
+
+
+ class-attribute
+ instance-attribute
+
+
+id: int | None = None
+
The id of the tag
+
is_adult
+
+
+
+ class-attribute
+ instance-attribute
+
+
+is_adult: bool | None = None
+
If the tag is only for adult 18+ media
+
is_general_spoiler
+
+
+
+ class-attribute
+ instance-attribute
+
+
+is_general_spoiler: bool | None = None
+
If the tag could be a spoiler for any media
+
is_media_spoiler
+
+
+
+ class-attribute
+ instance-attribute
+
+
+is_media_spoiler: bool | None = None
+
If the tag is a spoiler for this media
+
name
+
+
+
+ class-attribute
+ instance-attribute
+
+
+name: str | None = None
+
The name of the tag
+
rank
+
+
+
+ class-attribute
+ instance-attribute
+
+
+rank: int | None = None
+
The relevance ranking of the tag out of the 100 for this media
+
user_id
+
+
+
+ class-attribute
+ instance-attribute
+
+
+user_id: int | None = None
+
The user who submitted the tag
+
MediaTitle
+
+
+
+ Bases: ParentModel
The official titles of the media in various languages.
+ + + + +
english
+
+
+
+ class-attribute
+ instance-attribute
+
+
+english: str | None = None
+
The official English title
+
native
+
+
+
+ class-attribute
+ instance-attribute
+
+
+native: str | None = None
+
Official title in its native language
+
romaji
+
+
+
+ class-attribute
+ instance-attribute
+
+
+romaji: str | None = None
+
The romanization of the native language title
+
MediaTrailer
+
+
+
+ Bases: ParentModel
Media trailer or advertisement.
+ + + + +
id
+
+
+
+ class-attribute
+ instance-attribute
+
+
+id: str | None = None
+
The trailer video id
+
site
+
+
+
+ class-attribute
+ instance-attribute
+
+
+site: str | None = None
+
The site the video is hosted by (Currently either youtube or dailymotion)
+
thumbnail
+
+
+
+ class-attribute
+ instance-attribute
+
+
+thumbnail: HttpUrl | None = None
+
The url for the thumbnail image of the video
+
Relation
+
+
+
+ Bases: ParentModel
Related Anime or Manga to parent Media
+ + + + +
average_score
+
+
+
+ class-attribute
+ instance-attribute
+
+
+average_score: int | None = None
+
A weighted average score of all the user's scores of the media
+
banner_image
+
+
+
+ class-attribute
+ instance-attribute
+
+
+banner_image: HttpUrl | None = None
+
The banner image of the media
+
chapters
+
+
+
+ class-attribute
+ instance-attribute
+
+
+chapters: int | None = None
+
The amount of chapters the manga has when complete
+
country_of_origin
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Where the media was created. (ISO 3166-1 alpha-2)
+
cover_image
+
+
+
+ class-attribute
+ instance-attribute
+
+
+cover_image: MediaCoverImage = MediaCoverImage()
+
The cover images of the media
+
description
+
+
+
+ class-attribute
+ instance-attribute
+
+
+description: str | None = None
+
Short description of the media's story and characters
+
duration
+
+
+
+ class-attribute
+ instance-attribute
+
+
+duration: int | None = None
+
The general length of each anime episode in minutes
+
end_date
+
+
+
+ class-attribute
+ instance-attribute
+
+
+The last official release date of the media
+
episodes
+
+
+
+ class-attribute
+ instance-attribute
+
+
+episodes: int | None = None
+
The amount of episodes the anime has when complete
+
external_links
+
+
+
+ class-attribute
+ instance-attribute
+
+
+external_links: tuple[MediaExternalLink, ...] = tuple()
+
External links to another site related to the media
+
favourites
+
+
+
+ class-attribute
+ instance-attribute
+
+
+favourites: int | None = None
+
The amount of user's who have favourited the media
+
format
+
+
+
+ class-attribute
+ instance-attribute
+
+
+format: MediaFormat | None = None
+
The format the media was released in
+
genres
+
+
+
+ class-attribute
+ instance-attribute
+
+
+The genres of the media
+
hashtag
+
+
+
+ class-attribute
+ instance-attribute
+
+
+hashtag: str | None = None
+
Official Twitter hashtags for the media
+
id_mal
+
+
+
+ class-attribute
+ instance-attribute
+
+
+id_mal: int | None = None
+
The mal id of the media
+
is_adult
+
+
+
+ class-attribute
+ instance-attribute
+
+
+is_adult: bool | None = None
+
If the media is intended only for 18+ adult audiences
+
is_licensed
+
+
+
+ class-attribute
+ instance-attribute
+
+
+is_licensed: bool | None = None
+
If the media is officially licensed or a self-published doujin release
+
is_locked
+
+
+
+ class-attribute
+ instance-attribute
+
+
+is_locked: bool | None = None
+
Locked media may not be added to lists our favorited. This may be due to the entry pending for deletion or other reasons.
+
mean_score
+
+
+
+ class-attribute
+ instance-attribute
+
+
+mean_score: int | None = None
+
Mean score of all the user's scores of the media
+
next_airing_episode
+
+
+
+ class-attribute
+ instance-attribute
+
+
+next_airing_episode: AiringSchedule = AiringSchedule()
+
The media's next episode airing schedule
+
popularity
+
+
+
+ class-attribute
+ instance-attribute
+
+
+popularity: int | None = None
+
The number of users with the media on their list
+
rankings
+
+
+
+ class-attribute
+ instance-attribute
+
+
+The ranking of the media in a particular time span and format compared to other media
+
relation_type
+
+
+
+ class-attribute
+ instance-attribute
+
+
+relation_type: MediaRelation | None = None
+
The type of relation to the parent model
+
season
+
+
+
+ class-attribute
+ instance-attribute
+
+
+season: MediaSeason | None = None
+
The season the media was initially released in
+
season_int
+
+
+
+ class-attribute
+ instance-attribute
+
+
+season_int: int | None = None
+
The year & season the media was initially released in
+
season_year
+
+
+
+ class-attribute
+ instance-attribute
+
+
+season_year: int | None = None
+
The season year the media was initially released in
+
site_url
+
+
+
+ class-attribute
+ instance-attribute
+
+
+site_url: HttpUrl | None = None
+
The url for the media page on the AniList website
+
source
+
+
+
+ class-attribute
+ instance-attribute
+
+
+source: MediaSource | None = None
+
Source type the media was adapted from.
+
start_date
+
+
+
+ class-attribute
+ instance-attribute
+
+
+The first official release date of the media
+
status
+
+
+
+ class-attribute
+ instance-attribute
+
+
+status: MediaStatus | None = None
+
The current releasing status of the media
+
streaming_episodes
+
+
+
+ class-attribute
+ instance-attribute
+
+
+streaming_episodes: tuple[MediaStreamingEpisode, ...] = tuple()
+
Data and links to legal streaming episodes on external sites
+
synonyms
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Alternative titles of the media
+
tags
+
+
+
+ class-attribute
+ instance-attribute
+
+
+List of tags that describes elements and themes of the media
+
title
+
+
+
+ class-attribute
+ instance-attribute
+
+
+title: MediaTitle = MediaTitle()
+
The official titles of the media in various languages
+
trailer
+
+
+
+ class-attribute
+ instance-attribute
+
+
+trailer: MediaTrailer = MediaTrailer()
+
Media trailer or advertisement
+
trending
+
+
+
+ class-attribute
+ instance-attribute
+
+
+trending: int | None = None
+
The amount of related activity in the past hour
+
type
+
+
+
+ class-attribute
+ instance-attribute
+
+
+type: MediaType | None = None
+
The type of the media; anime or manga
+
updated_at
+
+
+
+ instance-attribute
+
+
+updated_at: datetime
+
When the media's data was last updated
+
volumes
+
+
+
+ class-attribute
+ instance-attribute
+
+
+volumes: int | None = None
+
The amount of volumes the manga has when complete
+
Staff
+
+
+
+ Bases: ParentModel
Voice actors or production staff
+ + + + +
age
+
+
+
+ class-attribute
+ instance-attribute
+
+
+age: int | None = None
+
The person's age in years
+
blood_type
+
+
+
+ class-attribute
+ instance-attribute
+
+
+blood_type: str | None = None
+
The persons blood type
+
date_of_birth
+
+
+
+ class-attribute
+ instance-attribute
+
+
+The staff's date of birth.
+
date_of_death
+
+
+
+ class-attribute
+ instance-attribute
+
+
+The staff's date of death.
+
description
+
+
+
+ class-attribute
+ instance-attribute
+
+
+description: str | None = None
+
A general description of the staff member
+
gender
+
+
+
+ class-attribute
+ instance-attribute
+
+
+gender: str | None = None
+
The staff's gender. Usually Male, Female, or Non-binary but can be any string.
+
home_town
+
+
+
+ class-attribute
+ instance-attribute
+
+
+home_town: str | None = None
+
The persons birthplace or hometown
+
id
+
+
+
+ class-attribute
+ instance-attribute
+
+
+id: int | None = None
+
The id of the staff member
+
image
+
+
+
+ class-attribute
+ instance-attribute
+
+
+image: StaffImage = StaffImage()
+
The staff images
+
language_v2
+
+
+
+ class-attribute
+ instance-attribute
+
+
+language_v2: str | None = None
+
The primary language of the staff member. +Current values: Japanese, English, Korean, +Italian, Spanish, Portuguese, French, German, +Hebrew, Hungarian, Chinese, Arabic, Filipino, +Catalan, Finnish, Turkish, Dutch, Swedish, Thai, +Tagalog, Malaysian, Indonesian, Vietnamese, Nepali, +Hindi, Urdu
+
name
+
+
+
+ class-attribute
+ instance-attribute
+
+
+The names of the staff member
+
primary_occupations
+
+
+
+ class-attribute
+ instance-attribute
+
+
+The person's primary occupations
+
role
+
+
+
+ class-attribute
+ instance-attribute
+
+
+role: str | None = None
+
The role of the staff member in the production of the media
+
site_url
+
+
+
+ class-attribute
+ instance-attribute
+
+
+site_url: HttpUrl | None = None
+
The url for the staff page on the AniList website
+
years_active
+
+
+
+ class-attribute
+ instance-attribute
+
+
+years_active: YearsActive = YearsActive()
+
(start_year, end_year) (If the 2nd value is not present staff is still active)
+
StaffImage
+
+
+
+ Bases: ParentModel
Staff's image
+ + + + +
large
+
+
+
+ class-attribute
+ instance-attribute
+
+
+large: HttpUrl | None = None
+
The person's image of media at its largest size
+
medium
+
+
+
+ class-attribute
+ instance-attribute
+
+
+medium: HttpUrl | None = None
+
The person's image of media at medium size
+
StaffName
+
+
+
+ Bases: ParentModel
The names of the staff member
+ + + + +
alternative
+
+
+
+ class-attribute
+ instance-attribute
+
+
+Other names the staff member might be referred to as (pen names)
+
first
+
+
+
+ class-attribute
+ instance-attribute
+
+
+first: str | None = None
+
The person's given name
+
full
+
+
+
+ class-attribute
+ instance-attribute
+
+
+full: str | None = None
+
The person's first and last name
+
last
+
+
+
+ class-attribute
+ instance-attribute
+
+
+last: str | None = None
+
The person's surname
+
middle
+
+
+
+ class-attribute
+ instance-attribute
+
+
+middle: str | None = None
+
The person's middle name
+
native
+
+
+
+ class-attribute
+ instance-attribute
+
+
+native: str | None = None
+
The person's full name in their native language
+
Studio
+
+
+
+ Bases: ParentModel
Animation or production company
+ + + + +
favourites
+
+
+
+ class-attribute
+ instance-attribute
+
+
+favourites: int | None = None
+
The amount of user's who have favourited the studio
+
id
+
+
+
+ class-attribute
+ instance-attribute
+
+
+id: int | None = None
+
The id of the studio
+
is_animation_studio
+
+
+
+ class-attribute
+ instance-attribute
+
+
+is_animation_studio: bool | None = None
+
If the studio is an animation studio or a different kind of company
+
is_main
+
+
+
+ class-attribute
+ instance-attribute
+
+
+is_main: bool | None = None
+
If the studio is the main animation studio of the anime
+
name
+
+
+
+ class-attribute
+ instance-attribute
+
+
+name: str | None = None
+
The name of the studio
+
site_url
+
+
+
+ class-attribute
+ instance-attribute
+
+
+site_url: HttpUrl | None = None
+
The url for the studio page on the AniList website
+Note
+Additionally, this module also offers the convenience of re-exporting some of the Pydantic types used within this library:
+
AnilistID
+
+
+
+ module-attribute
+
+
+AnilistID = Annotated[int, Field(gt=0, description='Anilist ID as found in the URL: https://anilist.co/{type}/{id}')]
+
AnilistTitle
+
+
+
+ module-attribute
+
+
+
AnilistYear
+
+
+
+ module-attribute
+
+
+
YearsActive
+
+
+
+ Bases: NamedTuple
Simple Named Tuple for
+_models.Staff.years_active
{"use strict";/*!
+ * escape-html
+ * Copyright(c) 2012-2013 TJ Holowaychuk
+ * Copyright(c) 2015 Andreas Lubbe
+ * Copyright(c) 2015 Tiancheng "Timothy" Gu
+ * MIT Licensed
+ */var Va=/["'&<>]/;qn.exports=za;function za(e){var t=""+e,r=Va.exec(t);if(!r)return t;var o,n="",i=0,s=0;for(i=r.index;i