GithubHelp home page GithubHelp logo

grainier / workerpool Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shazow/workerpool

0.0 2.0 1.0 531 KB

Python multithreaded job distribution module.

Home Page: http://code.google.com/p/workerpool/

License: MIT License

workerpool's Introduction

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 ([email protected])

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

workerpool's People

Contributors

jtriley avatar shazow avatar opoplawski avatar

Watchers

James Cloos avatar Grainier Perera avatar

Forkers

dslas4ever

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.