animedex.backends.ann

High-level ANN Encyclopedia Python API.

ANN exposes a small anonymous XML surface: api.xml for by-id and substring search, and reports.xml for curated encyclopedia lists. The high-level API parses XML into typed rich models while preserving <warning> rows as data rather than errors.

show

animedex.backends.ann.show(anime_id: int, *, config: Config | None = None, **kw) AnnAnimeResponse[source]

Fetch one ANN anime encyclopedia entry by ANN ID.

A missing ID returns a response with warnings populated and anime=[]; this mirrors ANN’s 200-OK warning contract.

reports

animedex.backends.ann.reports(id: int = 155, *, type: str | None = 'anime', nlist: int = 10, nskip: int | None = None, search: str | None = None, name: str | None = None, licensed: str | None = None, config: Config | None = None, **kw) AnnReport[source]

Fetch a curated ANN encyclopedia report by report ID.

selftest

animedex.backends.ann.selftest() bool[source]

Smoke-test the ANN high-level package without network access.