Metadata-Version: 1.0
Name: thread_pool
Version: 0.9
Summary: Implements thread pool with queue module of python.
Home-page: https://github.com/yummybian
Author: Yummy Bian
Author-email: yummy.bian#gmail.com
License: BSD
Description: Thread pool
        ============
        This is a simple thread pool for python(using queue module).
        
        Usage
        ============
        
        - Firstly, you should define a callback to deal with your task::
        
        
                def do_work(*args, **kwds):
                    # do something
                
        - Then, you can create a thread pool to schedule your tasks::
            
                from ThreadPool import ThreadPool
        
                # Create thread pool with nums threads
                pool = ThreadPool(nums)
                # Add a task into pool
                pool.add_task(do_work, args, kwds)
                # Join and destroy all threads
                pool.destroy()
            
        
Keywords: thread pool
Platform: Any
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
