{ "info": { "author": "Bryan Worrell", "author_email": "bworrell@notmyemail.com", "bugtrack_url": null, "classifiers": [], "description": "buckshot\n========\n\nThe ``buckshot`` library contains multiprocessing functions designed to help\ndevelopers create distributed applications quickly.\n\n\nInstallation\n------------\n\nThe easiest way to install ``buckshot`` is via ``pip``:\n\n::\n\n $ pip install buckshot\n\n\nUsage\n-----\n\nCurrently, there are two ways of leveraging ``buckshot`` to distribute work\nacross processes: the ``@distribute`` decorator and ``with distributed(...)``\ncontext manager.\n\nThe following example shows how we can distibute the work of calculating\nmany harmonic sum values across processes.\n\nSerial Approach\n~~~~~~~~~~~~~~~\n\n::\n\n import fractions\n\n def harmonic_sum(x):\n F = fractions.Fraction\n return sum(F(1, d) for d in xrange(1, x + 1))\n\n for value in range(1, 100):\n result = harmonic_sum(value)\n print result\n\n\nUsing ``@distribute``\n~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n import fractions\n\n from buckshot import distribute\n\n @distribute(processes=4)\n def harmonic_sum(x):\n F = fractions.Fraction\n return sum(F(1, d) for d in xrange(1, x + 1))\n\n for result in harmonic_sum(range(1, 100)): # Pass in values list.\n print result\n\n\nUsing ``with distributed(...)``\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n import fractions\n\n from buckshot import distributed\n\n def harmonic_sum(x):\n F = fractions.Fraction\n return sum(F(1, d) for d in xrange(1, x + 1))\n\n with distributed(harmonic_sum, processes=4) as distributed_harmonic_sum:\n for result in distributed_harmonic_sum(range(1, 100)):\n print result\n\nAll processes are destroyed when inputs are exhausted and/or the context is exited.\n\n\nKnown Issues\n------------\n\n* Function inputs must be picklable.\n* Function outputs must be picklable.\n* If a child process is killed externally, ``buckshot`` will block forever waiting\n for results.\n* This uses ``os.fork()`` under the hood, so there is a risk of rapidly exhausting\n memory.\n\n\nLICENSE\n-------\n\nRead the LICENSE file for details.", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bworrell", "keywords": "buckshot distrubted concurrency mp multiprocesses multiprocessing generally terrible", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "buckshot", "package_url": "https://pypi.org/project/buckshot/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/buckshot/", "project_urls": { "Homepage": "https://github.com/bworrell" }, "release_url": "https://pypi.org/project/buckshot/0.0.10/", "requires_dist": null, "requires_python": null, "summary": "Scatters tasks across processes.", "version": "0.0.10" }, "last_serial": 2328587, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "02b30650adccbe364720bd455b21f011", "sha256": "a16896e7cf3c440a018902b85208c90ad67b2cbeb002c5e622f5a97693a5fc04" }, "downloads": -1, "filename": "buckshot-0.0.1.tar.gz", "has_sig": false, "md5_digest": "02b30650adccbe364720bd455b21f011", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6105, "upload_time": "2016-08-21T18:30:03", "url": "https://files.pythonhosted.org/packages/cc/68/fb17c4f41db54445fecd44ac25c4adfde23c9fc4f96a6da55ba2c2f0b7e8/buckshot-0.0.1.tar.gz" } ], "0.0.10": [ { "comment_text": "", "digests": { "md5": "408a5815d3cc2eefa743689871b135b9", "sha256": "d34355e3710bb07e489646f8340ce29ac612db86acd810908d966834808e5311" }, "downloads": -1, "filename": "buckshot-0.0.10.tar.gz", "has_sig": false, "md5_digest": "408a5815d3cc2eefa743689871b135b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10038, "upload_time": "2016-09-07T03:06:51", "url": "https://files.pythonhosted.org/packages/9a/d3/bf9c89a88dcaaf654703818106f99723328f809a1af35d39ae4f271dab76/buckshot-0.0.10.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "a86fac2e53350bb0418a30945baa3de1", "sha256": "099a993df13a3890dff743e2d6fd4234c1e93d652bd3325b1fee47a37931fddc" }, "downloads": -1, "filename": "buckshot-0.0.2.tar.gz", "has_sig": false, "md5_digest": "a86fac2e53350bb0418a30945baa3de1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6348, "upload_time": "2016-08-21T19:41:46", "url": "https://files.pythonhosted.org/packages/9d/76/c509c8981a6384d836e0468ddf6de3a1299d8057f9bd50887bc28710f70a/buckshot-0.0.2.tar.gz" } ], "0.0.3": [], "0.0.4": [ { "comment_text": "", "digests": { "md5": "31c595ac2da5c5e37452285ffd229ff1", "sha256": "9fe4bc405639adc6732fbacd069bc972690bc83c1278199d789e72b7afc63013" }, "downloads": -1, "filename": "buckshot-0.0.4.tar.gz", "has_sig": false, "md5_digest": "31c595ac2da5c5e37452285ffd229ff1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5894, "upload_time": "2016-08-21T21:15:03", "url": "https://files.pythonhosted.org/packages/e5/64/bd4f5951f32334fe5b16e170682b0cb1cc93003244a1fc0f58a6e6f2e26f/buckshot-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "8e4bfaae0bbdc6c277c0907a1509f520", "sha256": "8b8ec78eecef9b94db7e541aa51d05a4e8ed0e5f9104f9b3eadce8d8091775e7" }, "downloads": -1, "filename": "buckshot-0.0.5.tar.gz", "has_sig": false, "md5_digest": "8e4bfaae0bbdc6c277c0907a1509f520", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6348, "upload_time": "2016-08-22T04:53:43", "url": "https://files.pythonhosted.org/packages/8d/2f/f1cf39327742a7940c0cdb8c919822963ae0ac457b14d7dab4c33cc45bcf/buckshot-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "d7292ebad16ba2b74933ab98f1883aab", "sha256": "955d6e0d519308831ef4b523f4c9250cfe4f58f74af7e73e36c9d62c422dbee5" }, "downloads": -1, "filename": "buckshot-0.0.6.tar.gz", "has_sig": false, "md5_digest": "d7292ebad16ba2b74933ab98f1883aab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8076, "upload_time": "2016-08-27T18:50:33", "url": "https://files.pythonhosted.org/packages/18/ec/610b3d7a56781347c89e40c482236d405f836700c032c41d5ecc1d9bf243/buckshot-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "94cfa0fad5e862210a8b7b57b5522e7e", "sha256": "f6b7abcd5ecce9a6711514b81f696a5600987c8eb6222add73e764d5d9c33d72" }, "downloads": -1, "filename": "buckshot-0.0.7.tar.gz", "has_sig": false, "md5_digest": "94cfa0fad5e862210a8b7b57b5522e7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7914, "upload_time": "2016-08-27T21:39:03", "url": "https://files.pythonhosted.org/packages/86/ea/cbe2ceaaeffb68f44bb7e2da4c4caeda420533437c5423fb75853b910a4e/buckshot-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "a71ddc56bba648aa0482618cb3257571", "sha256": "f504956d267cd746f2ea926df644ad384d442c296f6660fdfcb2c3273a381e10" }, "downloads": -1, "filename": "buckshot-0.0.8.tar.gz", "has_sig": false, "md5_digest": "a71ddc56bba648aa0482618cb3257571", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7949, "upload_time": "2016-08-27T22:49:25", "url": "https://files.pythonhosted.org/packages/1b/78/59ad5cab3c021ed6430765d012129e303faf47418a98700617d76cc4dce7/buckshot-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "0142dcac7d7966fa41113431de67648c", "sha256": "4ce04dbba4672d4ab5d51170c97333411823aa67b7044161f7b5f6eac3e8486a" }, "downloads": -1, "filename": "buckshot-0.0.9.tar.gz", "has_sig": false, "md5_digest": "0142dcac7d7966fa41113431de67648c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7998, "upload_time": "2016-08-28T02:36:25", "url": "https://files.pythonhosted.org/packages/5b/a4/c78bc25acc852ad38dc6bd040fdbd95e26a97f72b576f448b87fb8b7cfc3/buckshot-0.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "408a5815d3cc2eefa743689871b135b9", "sha256": "d34355e3710bb07e489646f8340ce29ac612db86acd810908d966834808e5311" }, "downloads": -1, "filename": "buckshot-0.0.10.tar.gz", "has_sig": false, "md5_digest": "408a5815d3cc2eefa743689871b135b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10038, "upload_time": "2016-09-07T03:06:51", "url": "https://files.pythonhosted.org/packages/9a/d3/bf9c89a88dcaaf654703818106f99723328f809a1af35d39ae4f271dab76/buckshot-0.0.10.tar.gz" } ] }