A package for creating task helpers.
Project description
Task helpers - a package for creating task helpers.
The library is under development. Classes, their location, description and behavior may change.
couriers module
The module allows you to work with tasks. The idea is that it would be possible to create a task and send it for execution / processing somewhere (to the worker), without waiting for the result to be executed in the same block of code. Or, for example, different clients (from different threads) can send many tasks for processing and each wait for its own result.
TaskCourier methods (parent & inherited classes):
Client side methods (ClientTaskCourier):
- get_task_result - returns task retuls, if it exists;
- wait_for_task_result - Waits for the task result to appear;
- add_task_to_queue - adds a task to the queue for processing;
Worker side methods (WorkerTaskCourier):
- get_tasks - pops tasks from queue and returns it;
- get_task - returns one task from queue;
- wait_for_task - waits for task and returns it;
- return_task_result - returns result to the client side.
ClientWorkerTaskCourier:
- all of the above
workers module
- In developing
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
task_helpers-0.0.8.tar.gz
(10.4 kB
view hashes)
Built Distribution
Close
Hashes for task_helpers-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac0cc86f62b4b2894007c1a110be5d4e9f05084f012efec948245394f3d64596 |
|
MD5 | e904b3a922b8884ca871e657c0907933 |
|
BLAKE2b-256 | b8ea9104586c8412bd3ecc06205a369bea105ec1fda09fc003c29b44a4605e83 |