swh.core.api.classes module#
- class swh.core.api.classes.PagedResult(results: ~typing.List[~swh.core.api.classes.TResult] = <factory>, next_page_token: ~swh.core.api.classes.TToken | None = None)[source]#
Bases:
Generic
[TResult
,TToken
]Represents a page of results; with a token to get the next page
- swh.core.api.classes.stream_results(f: Callable[[...], PagedResult[TResult, TToken]], *args, **kwargs) Iterable[TResult] [source]#
Consume the paginated result and stream the page results