This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!
Project Description
SimpleThreads - A simple thread pool utility
============
A simple thread pool for python 2.x+<br/>
If you are missing ThreadPoolExecutor in python 2.x, here is a simple thread pool manager.

Installation:
============

pip install simplethreads

Usage:
============

- Define tasks

def task_a():
# do something
pass

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

- 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
pool.process(task_a)

# Pass arguments to task
pool.process(task_b,1,2,3)

# 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!)
pool.shutdown(block=False)

Release History

Release History

1.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
SimpleThreads-1.2.tar.gz (2.2 kB) Copy SHA256 Checksum SHA256 Source Aug 21, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting