Documentation for miscellaneous support functions
sankaku.utils.ratelimit(*, rps=None, rpm=None)
Limit the number of requests.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
rps |
Optional[int]
|
Request per second |
None
|
rpm |
Optional[int]
|
Requests per minute |
None
|
Source code in sankaku/utils.py
sankaku.utils.convert_ts_to_datetime(ts)
Convert timestamp in datetime dict into datetime class.