stravalib.util.limiter.DefaultRateLimiter#

class stravalib.util.limiter.DefaultRateLimiter(priority: Literal['low', 'medium', 'high'] = 'high')[source]#

Implements something similar to the default rate limit for Strava apps.

See https://developers.strava.com/docs/rate-limits/ and https://communityhub.strava.com/t5/developer-knowledge-base/our-developer-program/ta-p/8849.

Rate limits are enforced by throttling requests based on their method and client/app-specific limits imposed by Strava.

__init__(priority: Literal['low', 'medium', 'high'] = 'high') None[source]#

Initializes the rate limiter based on the given priority.

Parameters:

priority (Literal["low", "medium", "high"]) – The priority given to the requests. Default is “high” (i.e. no throttling).

Methods

__init__([priority])

Initializes the rate limiter based on the given priority.