{ "info": { "author": "AMIAUD Christopher", "author_email": "christopher.amiaud@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: MacOS", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.3", "Programming Language :: Python :: 2.4", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.0", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Software Development", "Topic :: System :: Hardware :: Symmetric Multi-processing" ], "description": "pytaskpool\n==========\n\nA simple multiprocess function pooler which create results generators\n\npytaskpool use the python multiprocessing module\n\npytaskpool provide an easy way to execute python functions in a pool of process (not threads) for using all your CPU\ncores. Functions results can then be then obtained in order or not (via a generator method).\n\nDownload and docs:\n http://pypi.python.org/pypi/pytaskpool\nSource code & Development:\n https://github.com/govlog/pytaskpool\nIssues:\n christopher.amiaud@gmail.com\n\n\nInstallation\n============\n\npytaskpool is available in the python index package (pip),\nIt can be installed running the following command::\n\n $ pip install pytaskpool\n\nor by git like this::\n\n $ git clone https://github.com/govlog/pytaskpool\n $ cd pytaskpool\n $ sudo python setup.py install\n\nor even in a zip over http : https://github.com/govlog/pytaskpool/archive/master.zip\n\nUsage\n=====\n\nThis sample code will simultanously launch 8 functions with differents parameters using a pool of 8 processes.\nThe results returned by all launched functions will be get by the method get_sorted_results(), which is a generator\nreturning the functions results in order.\n\nThe excepted execution time should be around 1 second.\n\nSample code::\n\n import pytaskpool as tp\n from time import sleep\n\n def my_func(x):\n sleep(1)\n return [x ** x]\n\n mypool = tp.TaskPool([], 8)\n\n for r in range(8):\n mypool.launch(my_func, r)\n\n unsorted = [r for r in mypool.get_unsorted_results()]\n sorted = [r for r in mypool.get_sorted_results()]\n\n print \"unsorted :\",unsorted\n print \"sorted :\",sorted\n\nTerminal output should look like this::\n\n $ time python test.py\n unsorted : [[1], [4], [1], [3125], [823543], [256], [27], [46656]]\n sorted : [[1], [1], [4], [27], [256], [3125], [46656], [823543]]\n\n real 0m1.031s\n user 0m0.858s\n sys 0m0.193s", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/govlog/pytaskpool/tarball/1.1", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/govlog/pytaskpool", "keywords": "simple multiprocessing function pool", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "pytaskpool", "package_url": "https://pypi.org/project/pytaskpool/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pytaskpool/", "project_urls": { "Download": "https://github.com/govlog/pytaskpool/tarball/1.1", "Homepage": "https://github.com/govlog/pytaskpool" }, "release_url": "https://pypi.org/project/pytaskpool/1.1/", "requires_dist": null, "requires_python": null, "summary": "A simple multiprocessing function pool", "version": "1.1" }, "last_serial": 1373809, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "cafcbd810c01aece3b6e8fc0ff9089d1", "sha256": "cff527f13818ee687905c097ea08ace6c2947e9b666845f28454ca5a55a5a0f1" }, "downloads": -1, "filename": "pytaskpool-1.0.tar.gz", "has_sig": false, "md5_digest": "cafcbd810c01aece3b6e8fc0ff9089d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17332, "upload_time": "2015-01-07T09:18:58", "url": "https://files.pythonhosted.org/packages/4b/f8/3b198d58783572141a682f08b9761f9a1f271a8cd28d827c8b3f8a77a19c/pytaskpool-1.0.tar.gz" } ], "1.0b1": [ { "comment_text": "", "digests": { "md5": "609c0a42fa336c6160cf99c3ef9f1927", "sha256": "455c53a238b237848c23dab397f044c4c7d7bf92ea38e2f4d48c74ed000bb61c" }, "downloads": -1, "filename": "pytaskpool-1.0b1.tar.gz", "has_sig": false, "md5_digest": "609c0a42fa336c6160cf99c3ef9f1927", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15018, "upload_time": "2015-01-04T22:51:48", "url": "https://files.pythonhosted.org/packages/5d/8d/c75546d31ec64a68b7209e278c0f69433ed3e30b38e90cb422d709ebec47/pytaskpool-1.0b1.tar.gz" } ], "1.0b2": [ { "comment_text": "", "digests": { "md5": "484751f21f24ae885187d2666a0a9268", "sha256": "6ef1c5b35150738fe9e403805399f6df67026dee6d169c244b01ddbadc43df87" }, "downloads": -1, "filename": "pytaskpool-1.0b2.tar.gz", "has_sig": false, "md5_digest": "484751f21f24ae885187d2666a0a9268", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15892, "upload_time": "2015-01-06T10:07:01", "url": "https://files.pythonhosted.org/packages/89/b5/8777fa582dfac9b8234ad40e19fb6f1be6beca06c82fb7166f524a8dbed6/pytaskpool-1.0b2.tar.gz" } ], "1.0b3": [ { "comment_text": "", "digests": { "md5": "6098d469fc109d76715b83b7bdc9e5f9", "sha256": "8c6353d4e73a6f63309e0019991100a65197cd7af5bab30a1d0e9f5846828e1d" }, "downloads": -1, "filename": "pytaskpool-1.0b3.tar.gz", "has_sig": false, "md5_digest": "6098d469fc109d76715b83b7bdc9e5f9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16883, "upload_time": "2015-01-06T11:50:39", "url": "https://files.pythonhosted.org/packages/4e/42/1e26b54266ee784687e4f92e6365a274a8f76f52a65521b8c957d89f4dc3/pytaskpool-1.0b3.tar.gz" } ], "1.0b4": [ { "comment_text": "", "digests": { "md5": "65a2454145d6a2ee0678d1c01144a870", "sha256": "92342d7fa1fb86893fa8dbd39a3a4e4938b47ca00b0f59fefae4faf92ecd0023" }, "downloads": -1, "filename": "pytaskpool-1.0b4.tar.gz", "has_sig": false, "md5_digest": "65a2454145d6a2ee0678d1c01144a870", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17248, "upload_time": "2015-01-07T08:24:08", "url": "https://files.pythonhosted.org/packages/7d/ee/270d3fd8c2284597a5424edd9d57855f3a32b6d9bbc7103129c544c7c266/pytaskpool-1.0b4.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "21625334a36c858c105a05b0d32dbd57", "sha256": "0bb86b350ba5867e5319a96f838da9b2813b1f27aee43d37de5e19b64bc678a6" }, "downloads": -1, "filename": "pytaskpool-1.1.tar.gz", "has_sig": false, "md5_digest": "21625334a36c858c105a05b0d32dbd57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17324, "upload_time": "2015-01-07T09:30:53", "url": "https://files.pythonhosted.org/packages/e7/a4/fa1222afb62b35a3d076cc5f663e9c6fc0d0f24e5702d42c196dc7a2e0ca/pytaskpool-1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "21625334a36c858c105a05b0d32dbd57", "sha256": "0bb86b350ba5867e5319a96f838da9b2813b1f27aee43d37de5e19b64bc678a6" }, "downloads": -1, "filename": "pytaskpool-1.1.tar.gz", "has_sig": false, "md5_digest": "21625334a36c858c105a05b0d32dbd57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17324, "upload_time": "2015-01-07T09:30:53", "url": "https://files.pythonhosted.org/packages/e7/a4/fa1222afb62b35a3d076cc5f663e9c6fc0d0f24e5702d42c196dc7a2e0ca/pytaskpool-1.1.tar.gz" } ] }