Pagination
AsyncPaginator(http, path, model, *, params=None)
Async iterator over a paginated CTFd list endpoint.
Iterating yields parsed model instances one by one, transparently requesting the next page when the current one is exhausted.
Source code in ctfd/pagination.py
meta
property
Metadata of the most recently fetched page (empty before the first fetch).
PageMeta(page=None, next=None, prev=None, pages=None, per_page=None, total=None)
dataclass
Pagination metadata as exposed by the CTFd API.
The CTFd API returns these counters under the meta.pagination key on
list endpoints. Any of them may be missing on legacy versions, in which
case the field stays None.