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.
Project description
rateLimitedQueues v0.0.1a5
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 Manager
rateLimiter = Manager()
def functionToCall(a, b, c, d, *args, **kwargs):
sleep(2)
print(a, b, c, d, args, kwargs)
for _ in range(10):
rateLimiter.queueAction(functionToCall, randrange(1,5), True, 1, 2, 3, 4, 5, c=10, d=12, e=60)
This project is always open to suggestions and feature requests.
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
Close
Hashes for ratelimitedqueues-0.0.1a5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4eac57eff856d1bcea9faab65948c7f3388693268cc14632882c469f78170c9 |
|
MD5 | fa0167049097ada9e2ca09cac4405285 |
|
BLAKE2b-256 | 26dd10e2e0311aaa078bde3e9afd5de5b344f1cd753e97a399e73dde5db33427 |
Close
Hashes for rateLimitedQueues-0.0.1a5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68e427520c334cf212fcec746e8f0d34f1fe6260ce23a0cf4caeda19aee9bb28 |
|
MD5 | e04b63fe0792b462bbd4efb466c011ab |
|
BLAKE2b-256 | 3eedaf1c1b2d58b6fd2c6e84478b65d0a852c56e2d2673e90c78927b4bbdffd2 |