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.1a4
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.1a4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a99d05a7477c42d4ad03a3ee7017d6e4da5f52d14d129276f0942323b716a722 |
|
MD5 | 95eb8d87cffddf6735b0f7df4db0060d |
|
BLAKE2b-256 | 1bab2f5849d94514fb146c76f0457a62ed00fa773f0f4c2561d8c349011e9115 |
Close
Hashes for rateLimitedQueues-0.0.1a4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc9e1ee28e8a5260bd52be2cf316e63edc7373f4644c0dc820f376d17fd06f4f |
|
MD5 | 1f4e5e1e01cf3beb1e314c4fc837345e |
|
BLAKE2b-256 | 23627561b06576c34780402f75d5600912235b889bcccf8e619f44a146f6969e |