singer_sdk.streams.rest.PageContext

class singer_sdk.streams.rest.PageContext[source]

Per-page context passed to get_http_request().

Bundles the stream partition context and the current pagination token so that get_http_request() has everything it needs to build one HTTP request without accessing the paginator directly.

Added in version NEXT_VERSION.

__init__(stream_context, next_page_token)[source]
Parameters:
  • stream_context (Context | None)

  • next_page_token (_TToken | None)

Return type:

None

next_page_token: _TToken | None[source]

The next page token, if applicable.

stream_context: Context | None[source]

The stream partition or context dictionary.