A package for creating task helpers.
Project description
Task helpers
A package for creating task helpers.
task_helpers 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.
TaskHelper methods (parent & inherited classes):
Client side methods (ClientTaskHelper):
- 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 (WorkerTaskHelper):
- 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.
BaseClientWorkerTaskHelper:
- all of the above
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.5.tar.gz
(8.1 kB
view details)
Built Distribution
File details
Details for the file task_helpers-0.0.5.tar.gz
.
File metadata
- Download URL: task_helpers-0.0.5.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40f0bb89cfecb07498df224aa93e11fe3c75613243830ebcaeda2846b19aac75 |
|
MD5 | 249827ddd3693da0d03a8ff65cdce5f0 |
|
BLAKE2b-256 | daba326c86b6b69ab501696348e230d5ac8ba5bce778fa8e64535ae0a3463b19 |
File details
Details for the file task_helpers-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: task_helpers-0.0.5-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b79242666b446bef453911916f3ab8b0b1d8102e6efbc9e9594a9b589796a8f |
|
MD5 | 7d311f05e6f1bf45afbc20fc3ccc5233 |
|
BLAKE2b-256 | 5fc232795498466fa137f00581d702bad65f2b8dc333a9a42052e852c2b2ef78 |