File: utilities.rst

package info (click to toggle)
stravalib 2.3-1
  • links: PTS, VCS
  • area: contrib
  • in suites: trixie
  • size: 5,340 kB
  • sloc: python: 4,451; makefile: 4
file content (27 lines) | stat: -rw-r--r-- 658 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
======================================================
Limiter - in Utility Submodule: Functions and Classes
======================================================
.. currentmodule:: stravalib.util.limiter

This module provides a mixture of helpers to support rate limiting
and also functions for conversion?

Summary Functions
-------------------------------
.. autosummary::
   :toctree: api/

   get_rates_from_response_headers
   get_seconds_until_next_quarter
   get_seconds_until_next_day


Summary Classes
-------------------------------
.. autosummary::
   :toctree: api/

   SleepingRateLimitRule
   RateLimiter
   DefaultRateLimiter
   RequestRate