pypaginate.engine.cursor
Cursor/keyset paginators for cursor-based pagination.
Delegates fetch_page to a CursorBackend and builds a CursorPage.
Classes
Async orchestrator for cursor-based pagination. |
Module Contents
- class pypaginate.engine.cursor.AsyncCursorPaginator(backend: pypaginate.domain.protocols.CursorBackend[ItemT])
Bases:
Generic[ItemT]Async orchestrator for cursor-based pagination.
- async paginate(query: object, params: pypaginate.domain.params.CursorParams) Any
Execute cursor pagination.
- Parameters:
query – Backend-specific query object.
params – Cursor pagination parameters.
- Returns:
CursorPage with navigation metadata.