animedex.entry.api._get_only_template

Template for simple raw path backend subcommands.

Used by jikan / kitsu / mangadex / danbooru / ann to share the identical body. Each backend’s own .py file imports make_get_only_subcommand() and decorates it onto the api group.

Keeping the body shared is intentional: the only per-backend variation in this layer is the backend identifier and the docstring text.

make_get_only_subcommand

animedex.entry.api._get_only_template.make_get_only_subcommand(*, name: str, backend_module_name: str, docstring: str)[source]

Register a simple raw-path api <name> subcommand on the api group.

Each backend gets its own click.Command with its own docstring; the docstring carries the Backend: / Rate limit: / --- LLM Agent Guidance --- ... --- End --- blocks the project policy lint asserts.

Parameters:
  • name (str) – CLI subcommand name (also the backend identifier).

  • backend_module_name (str) – Module under animedex.api that exposes call(path=..., ...).

  • docstring (str) – The full docstring including the three policy blocks.