{ "info": { "author": "Manu C", "author_email": "manu.skc@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "SimpleThreads - A simple thread pool utility\r\n============\r\nA simple thread pool for python 2.x+
\r\nIf you are missing ThreadPoolExecutor in python 2.x, here is a simple thread pool manager. \r\n\r\nInstallation:\r\n============\r\n\r\n pip install simplethreads\r\n\r\nUsage:\r\n============\r\n\r\n- Define tasks\r\n\r\n def task_a():\r\n # do something\r\n pass\r\n \r\n def task_b(a,b,c):\r\n # do something more\r\n pass\r\n \r\n- Create a thread pool to schedule your tasks.\r\n \r\n from simplethreads.ThreadPool import ThreadPool\r\n\r\n # Create thread pool with nums threads\r\n pool = ThreadPool(nums)\r\n\r\n\t\t# Add a task into pool\r\n pool.process(task_a)\r\n\r\n\t\t# Pass arguments to task\r\n pool.process(task_b,1,2,3)\r\n\r\n # Cleanup before exit\r\n\t\t# default value of block=True\r\n\t\t# set to false if you dont want to wait till all the tasks are processed \r\n\t\t# (Tasks will be processed in background though!)\r\n pool.shutdown(block=False) \r\n \r\n", "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/manuskc/SimpleThreads", "keywords": null, "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "SimpleThreads", "package_url": "https://pypi.org/project/SimpleThreads/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/SimpleThreads/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/manuskc/SimpleThreads" }, "release_url": "https://pypi.org/project/SimpleThreads/1.2/", "requires_dist": null, "requires_python": null, "summary": "A simple threadpool utility", "version": "1.2" }, "last_serial": 1197519, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "d81f863d0eefe3e491e9743ece5af7aa", "sha256": "b4d7d233486cc98e7b433ba0571705dea6174b8b5b9cd39057593df1bc451fa7" }, "downloads": -1, "filename": "SimpleThreads-1.0.tar.gz", "has_sig": false, "md5_digest": "d81f863d0eefe3e491e9743ece5af7aa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2231, "upload_time": "2014-08-20T16:32:12", "url": "https://files.pythonhosted.org/packages/11/ad/ce9efc7b22834fe9e5560130bf3780103b98b841c35f3d32d9a8622e1668/SimpleThreads-1.0.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "a435785967320153b1c042af7a871fa9", "sha256": "ec48ef2593cd2f200c3b1ab7ffc9e8f01c95d56db51636a06d34648831aa0da2" }, "downloads": -1, "filename": "SimpleThreads-1.2.tar.gz", "has_sig": false, "md5_digest": "a435785967320153b1c042af7a871fa9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2202, "upload_time": "2014-08-21T09:50:35", "url": "https://files.pythonhosted.org/packages/26/8e/dd4bb8f9bae59a7ec38e285b8e45976e07dbb21c0cdc0a14a09a50902b1e/SimpleThreads-1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a435785967320153b1c042af7a871fa9", "sha256": "ec48ef2593cd2f200c3b1ab7ffc9e8f01c95d56db51636a06d34648831aa0da2" }, "downloads": -1, "filename": "SimpleThreads-1.2.tar.gz", "has_sig": false, "md5_digest": "a435785967320153b1c042af7a871fa9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2202, "upload_time": "2014-08-21T09:50:35", "url": "https://files.pythonhosted.org/packages/26/8e/dd4bb8f9bae59a7ec38e285b8e45976e07dbb21c0cdc0a14a09a50902b1e/SimpleThreads-1.2.tar.gz" } ] }