stravalib.client.BatchedResultsIterator#

class stravalib.client.BatchedResultsIterator(entity, result_fetcher, bind_client=None, limit=None, per_page=None)[source]#

An iterator that enables iterating over requests that return paged results.

__init__(entity, result_fetcher, bind_client=None, limit=None, per_page=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