Async implementation of a rate-limited lock object for Python 3.11.x
Project description
eko_throttler
Async implementation of a rate-limited lock object for Python 3.11.x
Info
Author: Drix Holway
Version: 0.2.0
Revision Date: 2023-07-18
Usage
The Throttler class requires a request limit int value, and an interval timedelta value on initialisation. These values dictate how the rate limiting will occur when a lock is acquired.
from datetime import timedelta
from eko_throttler import Throttler
async def main():
throttler = Throttler(
10,
timedelta(seconds=1),
)
async with throttler:
# do something
Installation
Installation of eko_throttler may be done using pip.
pip install eko_throttler
License
Licensed under the [MIT](LICENSE) license.
Credits
Copyright (c) 2023 Ekoteq
Author: Drix Holway
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eko_throttler-0.2.0.tar.gz.
File metadata
- Download URL: eko_throttler-0.2.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18815d1115f40ed4094e15e8b7ada4bbf227d24920e8ab7f98f0c0e84e7b5113
|
|
| MD5 |
48693fa560500c94df345472fb430926
|
|
| BLAKE2b-256 |
8f371cc53e7d725c5d581f23c15f55117a74ce1dc33f1f81701158ae5900ee9f
|
File details
Details for the file eko_throttler-0.2.0-py3-none-any.whl.
File metadata
- Download URL: eko_throttler-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d761ab4c6d5e9e2eb7fde3cc98d94a09d2afbc22305b3f668f75841518d16525
|
|
| MD5 |
71aa084f1cf35e61950341cf7ed435e2
|
|
| BLAKE2b-256 |
e1bae40d04334398b0e430cc74a67df05680fff2e21c3116ea3e1552118b6835
|