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.1a1
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.1a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e95d3fe07e628d045e9641069ee8142fc8c8446d99621e6d6e4c85195de6208a |
|
MD5 | e9b0b6fdab693955de5bb5a4543b9fbd |
|
BLAKE2b-256 | dcb08606c7a34740ad88e27a47b0e9680d54f5e61c4289206b0ab2a080f90283 |
Close
Hashes for rateLimitedQueues-0.0.1a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7292d101b88e75fda001c319a0f98d040735841c4c623d93d78c352fa4de5859 |
|
MD5 | c5c4b33989ff56190f3d9747c86dbcf9 |
|
BLAKE2b-256 | 37a2fd810061e82917c6fe69b8f3946ceeaa3e6a58e044fa1676825046e5fb60 |