GitXplorerGitXplorer
s

workerpool

public
152 stars
41 forks
4 issues

Commits

List of commits on branch master.
Unverified
2c5b29ec64ffbc94fc3623a4531eaf7c7c1a9ab5

PyPI decided to not let me upload 0.9.3, great.

sshazow committed 9 years ago
Unverified
43b0b316bbcd9e033c88a47c69b8e5803cc088df

New homepage

sshazow committed 9 years ago
Unverified
9b056ee73ad4794956b5bcafefb7645feae48996

CHANGES

sshazow committed 9 years ago
Unverified
16e72dcf1b02666e0a622c4137d85fb1b7a4569d

Merge pull request #9 from oubiwann/master

sshazow committed 9 years ago
Unverified
a77e3eb8117a61accffa0e068768b720a10c98f9

Updated to be Python 3 compatible.

ooubiwann committed 10 years ago
Unverified
b73694e7e2f5416aeb209d571c628df06229f382

Merge pull request #4 from opoplawski/test

sshazow committed 12 years ago

README

The README file for this repository.

WorkerPool

Performing tasks in many threads made fun!

The workerpool module is a simple framework for easily distributing jobs into multiple worker threads.

Examples of usage can be found in the unit tests (/test) and the samples provided (/samples).

This module facilitates distributing simple operations into jobs that are sent to worker threads, maintained by a pool object.

It consists of these components:

  • Jobs - single units of work that need to be performed.
  • Workers - workers grab jobs from a queue and run them.
  • Worker pool - keeps track of workers and the job queue.

Getting Started

The best place to start for now is to read the code and look at the examples in the unit tests (/test) and the sample uses (/samples). Documentation contributions are welcome! What have you accomplished with the workerpool?

Tutorials:

MassDownloader - How to write a simple multi-threaded mass downloader in under 10 lines of code.

Status

There's good work being done on a native Python multiprocessing module. The functionality has a lot of overlap with workerpool. Worth having a look at!

News

  • 2011-06-02: Migrating project to Github. https://github.com/shazow/workerpool
  • 2008-03-09: Released workerpool 0.9.2 (CHANGES) Warning: WorkerPool constructor signature changed.
  • 2008-03-02: Released workerpool 0.9.1 (CHANGES)
  • 2008-03-02: Added MassDownloader tutorial.
  • TODO

Add more complete usage examples and wiki tutorials. More thorough unit testing Finalize the API for a 1.0 release

Who's Using WorkerPool?

  • s3funnel - Multithreaded tool for performing operations on Amazon's S3
  • starcluster - Tool for creating clusters of virtual machines on EC2

Are you using it? Let us know!

Credit

This module was originally developed during my work at Idée Inc. Big thanks to Idée for letting me open source it!

License/Copyright

Copyright (c) 2008 Andrey Petrov (andrey.petrov@shazow.net)

Original copyright by Idee Inc. (http://ideeinc.com/)