{ "info": { "author": "Chris Adams", "author_email": "chris@improbable.org", "bugtrack_url": null, "classifiers": [], "description": "========================\nPython Performance Tools\n========================\n\nSimple utilities to make it easier to track performance of Python programs under normal operations\n\nContext Managers\n----------------\n\nDisplayElapsed\n~~~~~~~~~~~~~~\n\nThis context manager makes it easy to display console-oriented start/end messages with end-user tolerable\nformatting.\n\nUsage::\n\n with DisplayElapsed(\"{now} uploading {filename} (original: {original})\\n\",\n \"{now} uploaded {filename} in {elapsed:.1f} seconds\",\n filename=remote_path, original=local_path):\n upload_filename(\u2026)\n\nNotes:\n\n* DisplayElapsed takes one positional argument: ``message``. The message is formatted using\n `str.format `_ with the values ``{now}``\n and ``{elapsed}`` provided automatically. All other keyword arguments provided to ``DisplayElapsed`` will be\n available during formatting.\n* If ``message`` contains ``{{now}}`` it will be replaced with the current timestamp\n* If ``message`` does not contain ``{{now}}`` it will be prepended unless ``include_timestamp=False``\n* If ``postamble`` is not specified, it will default to ``\" ({elapsed:.1f} seconds)\"``\n* If ``output`` is not specified, it will default to ``sys.stdout``\n* If ``output_on_error`` is not True, the normal postamble display will be suppressed when an exception occurs\n* By default, a newline will not be emitted after the opening message so the message and postamble will be\n displayed on a single line. ``output`` will be flushed, if supported, to provide immediate feedback.\n Provide a message which ends in ``\\n`` if you want multi-line output.", "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/acdha/python-performance-tools", "keywords": null, "license": "See LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "performance_tools", "package_url": "https://pypi.org/project/performance_tools/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/performance_tools/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/acdha/python-performance-tools" }, "release_url": "https://pypi.org/project/performance_tools/0.3/", "requires_dist": null, "requires_python": null, "summary": "Utilities for measuring application performance", "version": "0.3" }, "last_serial": 905790, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "360aac25c4a96c7d569fb960253aba9b", "sha256": "31dc3ee41357c285c97c031e79f1104d529c32fb79844e920e37395075458c2a" }, "downloads": -1, "filename": "performance_tools-0.1.tar.gz", "has_sig": false, "md5_digest": "360aac25c4a96c7d569fb960253aba9b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6085, "upload_time": "2013-07-26T16:51:24", "url": "https://files.pythonhosted.org/packages/ee/a8/69b1049f277d2f734b6bd96d3d61ca670b202201a3a4ced28e52a9b7000e/performance_tools-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "0f4eaf7b9d967d52ae73dfee0355de95", "sha256": "ba8752dc18a89d085e848f568be26d58df021396bbfb5fc51eab4f2c9bb6005b" }, "downloads": -1, "filename": "performance_tools-0.2.tar.gz", "has_sig": false, "md5_digest": "0f4eaf7b9d967d52ae73dfee0355de95", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6082, "upload_time": "2013-07-26T21:46:52", "url": "https://files.pythonhosted.org/packages/c0/16/5194466435bd1274bca099d4fcd98e6b9bd4eabc6724c1237c5e25abc0c0/performance_tools-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "152c226da586fed844103f973086137a", "sha256": "c5677ce6fa559f3edc25410e33679a872cf14fcebd95ea1fb431ac7d67dd8a53" }, "downloads": -1, "filename": "performance_tools-0.3.tar.gz", "has_sig": false, "md5_digest": "152c226da586fed844103f973086137a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6682, "upload_time": "2013-10-28T20:19:04", "url": "https://files.pythonhosted.org/packages/21/04/c37b6a1ffe055c90e131a54328c2402eb7a40771755d68cd68c23ab44134/performance_tools-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "152c226da586fed844103f973086137a", "sha256": "c5677ce6fa559f3edc25410e33679a872cf14fcebd95ea1fb431ac7d67dd8a53" }, "downloads": -1, "filename": "performance_tools-0.3.tar.gz", "has_sig": false, "md5_digest": "152c226da586fed844103f973086137a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6682, "upload_time": "2013-10-28T20:19:04", "url": "https://files.pythonhosted.org/packages/21/04/c37b6a1ffe055c90e131a54328c2402eb7a40771755d68cd68c23ab44134/performance_tools-0.3.tar.gz" } ] }