MCPcopy
hub / github.com/dlt-hub/dlt / SinglePagePaginator

Class SinglePagePaginator

dlt/sources/helpers/rest_client/paginators.py:75–82  ·  view source on GitHub ↗

A paginator for single-page API responses.

Source from the content-addressed store, hash-verified

73
74
75class SinglePagePaginator(BasePaginator):
76 """A paginator for single-page API responses."""
77
78 def update_state(self, response: Response, data: Optional[List[Any]] = None) -> None:
79 self._has_next_page = False
80
81 def update_request(self, request: Request) -> None:
82 return
83
84
85class RangePaginator(BasePaginator):

Calls

no outgoing calls