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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file thread-task-0.9.7.tar.gz.

File metadata

  • Download URL: thread-task-0.9.7.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0+

File hashes

Hashes for thread-task-0.9.7.tar.gz
Algorithm Hash digest
SHA256 adf373d6c55a2c5dd170e0087365451c2dde8ff636ccd57431ec9402d30eb05e
MD5 b2bb7536a2f765b3763b94e9966495c4
BLAKE2b-256 a62423943f113785fe132569fde256d12a017c8e411071f8a71ad79c2b33905c

See more details on using hashes here.

File details

Details for the file thread_task-0.9.7-py3-none-any.whl.

File metadata

  • Download URL: thread_task-0.9.7-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0+

File hashes

Hashes for thread_task-0.9.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e7bd36a0119c181e625a6e0c4ffca6c19f8e744b4b7a85f3ce1d04d57b44a5a8
MD5 69411e86497ca1e8802dd4e323db5dd2
BLAKE2b-256 30f02cc84591996d03329245ed5d0617a4cbfeda046bf4c5cb0170149466ac62

See more details on using hashes here.

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