rateLimitedQueues v0.0.3rev1
pip install rateLimitedQueues --upgrade
A well maintained program to execute functions in queue as if only 1 worker is executing them one by one (High priority first). Works wonders when a series of time consuming tasks has to be performed but they need to be in sequence.
To install:
pip install rateLimitedQueues --upgrade
pip3 install rateLimitedQueues --upgrade
python -m pip install rateLimitedQueues --upgrade
python3 -m pip install rateLimitedQueues --upgrade
Using this program is as simple as:
from rateLimitedQueues import RateLimitedQueues
rateLimiter = RateLimitedQueues()
def mainFunction(n, *args, **kwargs):
sleep(1)
print(args, kwargs)
def postFunction(*args, **kwargs):
sleep(1)
print(args, kwargs)
for i in range(10):
rateLimiter.queueAction(mainFunction=mainFunction, executeMainInThread=True, executePostInThread=True,
postFunction=postFunction, postArgs=(i,), postKwArgs={i: i**2}, n=i)
This project is always open to suggestions and feature requests.
Metadata
Release files for rateLimitedQueues 0.0.3.post1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ratelimitedqueues-0.0.3.post1.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rateLimitedQueues-0.0.3.post1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / ratelimitedqueues-0.0.3.post1.tar.gz
| Download URL | ratelimitedqueues-0.0.3.post1.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
708a5d641dfad8641dd842896946ed048430a627271f69449471cc1b280b1d65
|
|
BLAKE2b-256 checksum How to use checksums |
399a501156097c3a89ce9ee3fb96b06b65d9bc5e3e3b5506fc044c44c7aa555c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.21
|
Release files / rateLimitedQueues-0.0.3.post1-py3-none-any.whl
| Download URL | rateLimitedQueues-0.0.3.post1-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
de3889fb303e20dcbcd09dbc01130f90d1b772972aca57d79ecf4fb5e1325ca6
|
|
BLAKE2b-256 checksum How to use checksums |
12f50da4b6a4da177b6b7e0a21fe26e3fcd272dd422c4558aecf0cac98652c2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.21
|