singer_sdk.pagination.SinglePagePaginator#

class singer_sdk.pagination.SinglePagePaginator[source]#

A paginator that works with single-page endpoints.

__init__(*args, **kwargs)[source]#

Create a new paginator.

Parameters:
  • args (Any) – Paginator positional arguments for base class.

  • kwargs (Any) – Paginator keyword arguments for base class.

Return type:

None

get_next(response)[source]#

Get the next pagination token or index from the API response.

Parameters:

response (Response) – API response object.

Returns:

The next page token or index. Return None from this method to indicate

the end of pagination.

Return type:

None