skip to navigation
skip to content

Not Logged In

taskthread 1.2

Simple thread module to repetitively perform a task on a single thread

Latest Version: 1.4

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.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
 
File Type Py Version Uploaded on Size
taskthread-1.2.macosx-10.9-intel.tar.gz (md5)
built for Darwin-13.0.0
"dumb" binary any 2013-12-05 5KB
taskthread-1.2.tar.gz (md5) Source 2013-12-05 12KB
  • Downloads (All Versions):
  • 8 downloads in the last day
  • 68 downloads in the last week
  • 433 downloads in the last month