Skip to main content

pypaginate.pages

Result pages — generic containers that hold your rows untouched.

A page wraps the matched items (your own objects/ORM rows, never coerced or validated) plus pagination metadata, so there is zero per-row cost.

OffsetPage Objects

@dataclass(frozen=True, slots=True)
class OffsetPage(Generic[T])

An offset page: the matched items plus offset metadata.

CursorPage Objects

@dataclass(frozen=True, slots=True)
class CursorPage(Generic[T])

A cursor page: the matched items plus next/previous cursors.