limitry.client.PaginatedResponse

class limitry.client.PaginatedResponse[source]

Bases: Generic[T]

Response from a paginated API endpoint

__init__(data, next_cursor=None, has_more=False)[source]

Initialize a paginated response.

Parameters:
  • data (list[TypeVar(T)]) – List of items in this page

  • next_cursor (Optional[str]) – Cursor for the next page (if available)

  • has_more (bool) – Whether there are more pages available

Methods

__init__(data[, next_cursor, has_more])

Initialize a paginated response.

__init__(data, next_cursor=None, has_more=False)[source]

Initialize a paginated response.

Parameters:
  • data (list[TypeVar(T)]) – List of items in this page

  • next_cursor (Optional[str]) – Cursor for the next page (if available)

  • has_more (bool) – Whether there are more pages available