{ "info": { "author": "Zach Kurtz", "author_email": "zkurtz@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "When will it end\n================\n\nThis consists of a single class ``LoopProgressMonitor`` that you\ninstantiate right before a loop and then call inside the loop. It\nmonitors how long each iteration is taking and issues a forecast of when\nthe loop will conclude based on the number of iterations remaining and\nthe average time per iteration so far. It prints a new predicted end\ntime only when the most recent forecast falls too far from its internal\nestimate modulo some tolerance.\n\nRequirements\n------------\n\nPython 3 with the following modules: ``math``, ``time``\n\nSetup\n-----\n\nFrom pypi: ``pip install when_will_it_end``\n\nAlternatively, clone\nthe\\ `source `__\\ and -\n``cd when_will_it_end`` - ``python setup.py install``\n\nExample\n-------\n\n.. code:: python\n\n import numpy as np\n import time\n import when_will_it_end as wwie\n\n number_of_iterations = 10\n\n print('Starting time: ' + wwie.format_time(time.time()))\n\n lpm = wwie.LoopProgressMonitor(n = number_of_iterations)\n for k in range(number_of_iterations):\n lpm()\n _ = np.random.uniform(0,1,size=100000000)\n\n print('Actual ending time: ' + wwie.format_time(time.time()))\n\nResults:\n\n::\n\n Starting time: 18:04:42\n Starting first of 10 iterations ...\n Est. total 18.0 seconds, finish 18:05:00 after 9 iters at 1.8 sec/iter\n Est. total 20.0 seconds, finish 18:05:02 after 6 iters at 2.0 sec/iter\n Actual ending time: 18:05:01", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/zkurtz/when_will_it_end", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "when-will-it-end", "package_url": "https://pypi.org/project/when-will-it-end/", "platform": "", "project_url": "https://pypi.org/project/when-will-it-end/", "project_urls": { "Homepage": "https://github.com/zkurtz/when_will_it_end" }, "release_url": "https://pypi.org/project/when-will-it-end/0.0.2/", "requires_dist": null, "requires_python": "", "summary": "A simpler progress monitor", "version": "0.0.2" }, "last_serial": 3946457, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "47cd96b855a4309f144445b6ade87fab", "sha256": "282d07475cff1d30260c01dc723c86e3c22350e99eb832e6f43334c68297d5a0" }, "downloads": -1, "filename": "when_will_it_end-0.0.2.tar.gz", "has_sig": false, "md5_digest": "47cd96b855a4309f144445b6ade87fab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2673, "upload_time": "2018-06-10T03:02:35", "url": "https://files.pythonhosted.org/packages/16/3f/55c6f9847ec0bfc366403ac05916401b029d8f66042302ebeb837c6d740e/when_will_it_end-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "47cd96b855a4309f144445b6ade87fab", "sha256": "282d07475cff1d30260c01dc723c86e3c22350e99eb832e6f43334c68297d5a0" }, "downloads": -1, "filename": "when_will_it_end-0.0.2.tar.gz", "has_sig": false, "md5_digest": "47cd96b855a4309f144445b6ade87fab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2673, "upload_time": "2018-06-10T03:02:35", "url": "https://files.pythonhosted.org/packages/16/3f/55c6f9847ec0bfc366403ac05916401b029d8f66042302ebeb837c6d740e/when_will_it_end-0.0.2.tar.gz" } ] }