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.1a2
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.1a2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b551eed83d6d4f3398abe6498038256a712b27a16c968efdc037b7ff91a33de |
|
MD5 | a5780112ba714925ce1b81916bd25495 |
|
BLAKE2b-256 | 30132fbba55ecfe4f80915037ee33f7fe9f8ae9e823511ee3ceac7e3eca6bfdb |
Close
Hashes for rateLimitedQueues-0.0.1a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b54434b8ad9f5e433c267cdd9a836c2468512f2dc887268b7975504196b1348 |
|
MD5 | 2a649428eddc332b6bf46b93ca382351 |
|
BLAKE2b-256 | 6cce689db83878834463aa8b678b391f7614fe93b48bd80ea2367cba2ec85c7d |