animedex.models.quote

Anime-quote model.

Quote is the shape AnimeChan returns. The free-tier API exposes only the random-quote endpoint, so the typed surface is small; character and anime are optional because some quotes omit one or the other.

Quote

class animedex.models.quote.Quote(*, text: str, character: str | None = None, anime: str | None = None, source: SourceTag)[source]

Bases: AnimedexModel

A single anime quote.

Variables:
  • text (str) – The quote text.

  • character (str or None) – Speaker name when reported.

  • anime (str or None) – Source anime title when reported.

  • source (SourceTag) – Provenance tag.

text: str
character: str | None
anime: str | None
source: SourceTag

selftest

animedex.models.quote.selftest() bool[source]

Smoke-test the quote model.

Returns:

True on success; raises on schema errors.

Return type:

bool