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.1a3
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.1a3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf193d4e0f3c621b6a9afb670b7e0714eee4027ce24008bef90d3ade2a264259 |
|
MD5 | 0293d9d0decb0f78dc45a66aebf89588 |
|
BLAKE2b-256 | e5405fdf6b4f2afa82e84970c05859c013b8aa8eef5dfb284cb25d50a4698a29 |
Close
Hashes for rateLimitedQueues-0.0.1a3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d835f663361f0a45d5245f3180a0ffe1795740886f25e686f16f88682c2314d |
|
MD5 | 00446224d0a02b7b3ca159fa09e019d6 |
|
BLAKE2b-256 | 3a413ff9af3ba1e6fa6d53436d94935618e7c81235f6d15ca60b5f69ca3a48cd |