Metadata-Version: 2.1
Name: workerqueue
Version: 0.0.2
Summary: A thread-based worker queue
Home-page: https://github.com/jaeseopark/workerqueue
Author: Jaeseo Park
License: UNKNOWN
Description: # workerqueue
        
        A thread-based worker queue
        
        ## Installation
        
        ```bash
        pip install workerqueue
        ```
        
        ## Usage
        
        ```python
        from workerqueue import WorkerQueue
        from time import sleep
        
        def myfunc(arg1, arg2):
            print(f"{arg1}*2={arg2}")
            sleep(0.5)
        
        myqueue = WorkerQueue(myfunc, thread_count=2)
        
        for i in range(10):
            myargs = i, i*2
            myqueue.put(myargs)
        
        sleep(1)
        
        print("Calling stop()...")
        myqueue.stop()
        
        print("Finished processing")
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3
Description-Content-Type: text/markdown
