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.1a7
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.1a7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d9cae38e504dcdc3bdb17de079ee1cf0693452d74f985a743301b8dea2037fe |
|
MD5 | fc61ea91cc17c1eb73468c9f35bb2ca6 |
|
BLAKE2b-256 | bb2661041014bc3bc5328776334fddd2c8ebd156b241bc47e1d4b085f921ecf1 |
Close
Hashes for rateLimitedQueues-0.0.1a7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b269383f13f70a2dc9921c5126d6ae0e437269832a2de44af91735acdf779b5 |
|
MD5 | fda5218bc6a42b7aa267d5728f9eb11c |
|
BLAKE2b-256 | 3b906df50160d207be161a79bcbb5fd615d0a8abd3a2583d85d960d1e10dfc4d |