Skip to main content

TaskThread

Python thread module to repeat an predefined task on a thread mulitple times. A TaskThread is useful when a task needs to be repeated several times on a separate thread. Normal usage of the threading.Thread class would call for creation of a new thread each time the same task needs to be run. This module allows for repetitive tasks to be run multiple times on the same thread by having the thread wait until the task needs to be executed again.

Provided Classes

taskthread.TaskThread`

A sub-class of threading.Thread that may execute a single task multiple times without the overhead of starting a new thread.

taskthread.TaskInProcessException

Exception that is thrown if a task is started on a thread that is already executing.

Installation

taskthread may be installed by executing pip install taskthread.

Changes

v1.4

  • ADD TimerTask class that runs a repetitive task on a taskthread.

v1.3

  • Change task loop to support python 2.6.

v1.2

  • Refactor the module so classes are defined in __init__.py.

v1.1

  • ADD TaskThread.join_task method that waits for the currently executing. task to complete.

v1.0

  • First release

Metadata

Release files for taskthread 1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for taskthread 1.4
File Size Uploaded Provenance Actions
taskthread-1.4.tar.gz 15.1 kB Without provenance Details for taskthread-1.4.tar.gz

Release files / taskthread-1.4.tar.gz

Download URL taskthread-1.4.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
626c17c611189ac541051d44f6c0f01d47eefc6622d1d7877832b2add06685f1
BLAKE2b-256 checksum
How to use checksums
1cfc63f80ef28195b8a6b5b7254bd2681f68d3ea426e6bda13e782beea43ac93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for taskthread 1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.4 This release

1 release file No provenance

1.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page