organize and run thread tasks
Project description
thread_task is built on top of threading and allows to organize tasks and run them parallel. You can:
- build chains of tasks, which execute tasks sequentially in a single thread
- build parent child dependencies, which allows to construct trees of tasks
- stop tasks, which also stops the execution of child tasks
- continue tasks, which also continues the execution of child tasks
- restart finished or stopped tasks
- join tasks, which means waiting until the task and its children are finished
A thread_task is not like a function, it doesn't return results. Think of it as an instruction to a reliable but independently acting person. If feedback is needed, this can be done by callback functions. You can also use mutable objects, which tasks get in as arguments.
The following task types exist:
- Task: Executes a single task or a chain of tasks.
- Repeated: Executes a task multiple times.
- Periodic: Executes a task periodically.
- Sleep: sleeps for a given time, is similar to time.sleep, but can be stopped and continued.
See thread-task.readthedocs.io for more details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
thread-task-0.9.1.tar.gz
(9.6 kB
view hashes)
Built Distribution
Close
Hashes for thread_task-0.9.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67894e67ef7f1ea314f9550321362dfffd316e8442ed56decd5790447f2e1c14 |
|
MD5 | 5976d793d5d277823e1c519dca6c0794 |
|
BLAKE2b-256 | 259387807db2bfa16e220a18497a94737c58aa57a1befd44ac7e3eb8ccaa6f1b |