stravalib.client.BatchedResultsIterator#
- class stravalib.client.BatchedResultsIterator(entity: type[T], result_fetcher: ResultFetcher, bind_client: Client | None = None, limit: int | None = None, per_page: int | None = None)[source]#
An iterator that enables iterating over requests that return paged results.
- __init__(entity: type[T], result_fetcher: ResultFetcher, bind_client: Client | None = None, limit: int | None = None, per_page: int | None = None)[source]#
- Parameters:
entity (type) – The class for the model entity.
result_fetcher (callable) – The callable that will return another batch of results.
bind_client (
stravalib.client.Client
) – The client object to pass to the entities for supporting further fetching of objects.limit (int) – The maximum number of rides to return.
per_page (int) – How many rows to fetch per page (default is 200).
Methods
__init__
(entity, result_fetcher[, ...])- param entity:
The class for the model entity.
next
()reset
()Attributes
default_per_page