skip to navigation
skip to content

SimpleThreads 1.2

A simple threadpool utility

SimpleThreads - A simple thread pool utility
A simple thread pool for python 2.x+

If you are missing ThreadPoolExecutor in python 2.x, here is a simple thread pool manager.


pip install simplethreads


- Define tasks

def task_a():
# do something

def task_b(a,b,c):
# do something more

- Create a thread pool to schedule your tasks.

from simplethreads.ThreadPool import ThreadPool

# Create thread pool with nums threads
pool = ThreadPool(nums)

# Add a task into pool

# Pass arguments to task

# Cleanup before exit
# default value of block=True
# set to false if you dont want to wait till all the tasks are processed
# (Tasks will be processed in background though!)

File Type Py Version Uploaded on Size
SimpleThreads-1.2.tar.gz (md5) Source 2014-08-21 2KB
  • Downloads (All Versions):
  • 41 downloads in the last day
  • 309 downloads in the last week
  • 1264 downloads in the last month