Shared Models
Copyright #
Copyright statements.
ExternalIDs #
External IDs.
Followers #
Image #
Paginator #
A basic paginator.
lazy_iter_items #
lazy_iter_items() -> AsyncGenerator[T]
Iterate over all the items of the paginator, starting from the currently fetched items.
Returns:
-
AsyncGenerator[T]–An async generator of the requested items.
Example
async for item in paginator.lazy_iter_items():
print(item.name)
CursorPaginator #
A paginator using cursors to paginate the content.
lazy_iter_items #
lazy_iter_items() -> AsyncGenerator[T]
Iterate over all the items of the paginator, starting from the currently fetched items.
Returns:
-
AsyncGenerator[T]–An async generator of the requested items.
Example
async for item in paginator.lazy_iter_items():
print(item.name)
get_next #
get_next() -> CursorPaginator[T] | None
Get the next page of items in the paginator.
Returns:
-
CursorPaginator–The next paginator page.
-
None–