Light Logo
Python SDK (v0.16.0)Reference

pagination

Pagination module.

pagination module

Pagination module.

class PaginatedResponse(items, next_cursor, previous_cursor, next_url, previous_url)

Bases: Generic[T]

Represents a paginated response.

  • Parameters:
    • items (list *[*T ])
    • next_cursor (str | None)
    • previous_cursor (str | None)
    • next_url (str | None)
    • previous_url (str | None)

items : list[T]

List of items returned in the current page.

next_cursor : str | None

Cursor pointing to the next page.

previous_cursor : str | None

Cursor pointing to the previous page.

next_url : str | None

URL to fetch the next page.

previous_url : str | None

URL to fetch the previous page.