Skip to main content

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 relationships, 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. Communication between tasks is possible by mutable objects, which can be red or changed by multiple tasks.

The following task types exist:

  • Task: Executes a single callable or a chain of callables.

  • Repeated: Executes a callable multiple times.

  • Periodic: Executes a callable periodically

  • Sleep: Sleeps for a given time, is similar to time.sleep, but can be stopped and continued

Read 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.7.tar.gz (12.0 kB view hashes)

Uploaded Source

Built Distribution

thread_task-0.9.7-py3-none-any.whl (14.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page