stravalib.util.limiter.RequestRate#

class stravalib.util.limiter.RequestRate(short_usage: int, long_usage: int, short_limit: int, long_limit: int)[source]#

Tuple containing request usage and usage limit.

__init__()#

Methods

_asdict()

Return a new dict which maps field names to their values.

_make(iterable)

Make a new RequestRate object from a sequence or iterable

_replace(**kwds)

Return a new RequestRate object replacing specified fields with new values

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

_field_defaults

_fields

long_limit

Daily limit

long_usage

Daily usage

short_limit

15-minutes limit

short_usage

15-minute usage

count(value, /)#

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)#

Return first index of value.

Raises ValueError if the value is not present.

long_limit: int#

Daily limit

long_usage: int#

Daily usage

short_limit: int#

15-minutes limit

short_usage: int#

15-minute usage