animedex.agg._type_routes
Entity type routing for aggregate search/show.
ENTITY_TYPES
- animedex.agg._type_routes.ENTITY_TYPES = ('anime', 'manga', 'character', 'person', 'studio', 'publisher')
Built-in immutable sequence.
If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable’s items.
If the argument is a tuple, the return value is the same object.
SearchRoute
ShowRoute
validate_entity_type
search_routes_for
- animedex.agg._type_routes.search_routes_for(entity_type: str) tuple[SearchRoute, ...][source]
Return search routes for
entity_type.- Parameters:
entity_type (str) – Normalised entity type.
- Returns:
Search routes.
- Return type:
tuple[SearchRoute, …]
show_route_for
backends_for_type
import_backend
call_search_route
- animedex.agg._type_routes.call_search_route(route: SearchRoute, query: str, limit: int, *, config: Config | None = None, **kw)[source]
Call a search route.
- Parameters:
route (SearchRoute) – Search route.
query (str) – Search query.
limit (int) – Per-source limit.
config (Config or None) – Optional config.
- Returns:
Backend result list.
- Return type: