{ "info": { "author": "Yummy Bian", "author_email": "yummy.bian#gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Thread pool\r\n============\r\nThis is a simple thread pool for python(using queue module).\r\n\r\nUsage\r\n============\r\n\r\n- Firstly, you should define a callback to deal with your task::\r\n\r\n\r\n def do_work(*args, **kwds):\r\n # do something\r\n \r\n- Then, you can create a thread pool to schedule your tasks::\r\n \r\n from thread_pool import ThreadPool\r\n\r\n # Create thread pool with nums threads\r\n pool = ThreadPool(nums)\r\n # Add a task into pool\r\n pool.add_task(do_work, args, kwds)\r\n # Join and destroy all threads\r\n pool.destroy()", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/yummybian", "keywords": "thread pool", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "thread_pool", "package_url": "https://pypi.org/project/thread_pool/", "platform": "Any", "project_url": "https://pypi.org/project/thread_pool/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/yummybian" }, "release_url": "https://pypi.org/project/thread_pool/0.9/", "requires_dist": null, "requires_python": null, "summary": "Implements thread pool with queue module of python.", "version": "0.9" }, "last_serial": 800569, "releases": { "0.9": [ { "comment_text": "", "digests": { "md5": "8338d457e62310b39dc43509fb216f79", "sha256": "a5ab81e9577339764f47328af478e5de13e3aa141e79a9b97f7b47afaedabe2a" }, "downloads": -1, "filename": "thread_pool-0.9-py2.7.egg", "has_sig": false, "md5_digest": "8338d457e62310b39dc43509fb216f79", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 5228, "upload_time": "2012-10-27T07:47:01", "url": "https://files.pythonhosted.org/packages/bb/8b/d8ba7f9157c48c8375546d99dd0832de601f56f8d32691dab42b308e3739/thread_pool-0.9-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "732b8505a0250e53c26b101d7554e436", "sha256": "e055db47643eaecf5432837cec2058173f985c600fa0ee58eb7bae58fd34a7dc" }, "downloads": -1, "filename": "thread_pool-0.9.tar.gz", "has_sig": false, "md5_digest": "732b8505a0250e53c26b101d7554e436", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3111, "upload_time": "2012-10-27T07:47:00", "url": "https://files.pythonhosted.org/packages/74/0c/a25ae9c5b9316f62ae1323ce82f6bac3d071cad713bf7c672a5805404324/thread_pool-0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8338d457e62310b39dc43509fb216f79", "sha256": "a5ab81e9577339764f47328af478e5de13e3aa141e79a9b97f7b47afaedabe2a" }, "downloads": -1, "filename": "thread_pool-0.9-py2.7.egg", "has_sig": false, "md5_digest": "8338d457e62310b39dc43509fb216f79", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 5228, "upload_time": "2012-10-27T07:47:01", "url": "https://files.pythonhosted.org/packages/bb/8b/d8ba7f9157c48c8375546d99dd0832de601f56f8d32691dab42b308e3739/thread_pool-0.9-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "732b8505a0250e53c26b101d7554e436", "sha256": "e055db47643eaecf5432837cec2058173f985c600fa0ee58eb7bae58fd34a7dc" }, "downloads": -1, "filename": "thread_pool-0.9.tar.gz", "has_sig": false, "md5_digest": "732b8505a0250e53c26b101d7554e436", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3111, "upload_time": "2012-10-27T07:47:00", "url": "https://files.pythonhosted.org/packages/74/0c/a25ae9c5b9316f62ae1323ce82f6bac3d071cad713bf7c672a5805404324/thread_pool-0.9.tar.gz" } ] }