{ "info": { "author": "Daniel Lindsley", "author_email": "daniel@toastdriven.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "======\nchrono\n======\n\nA (BSD licensed) context manager for timing execution. Useful for benchmarking\neveryday Python code easily/cleanly.\n\n\nUsage\n=====\n\nUsage is trivial. Simply wrap your code in a ``Timer`` context manager.\nExample::\n\n from chrono import Timer\n\n with Timer() as timed:\n # Put whatever logic you want here.\n # ``for`` loops are great here for timing things that are very fast.\n\n print(\"Time spent: {0} seconds\".format(timed.elapsed))\n\n\nRequirements\n============\n\n* Python 2.6+ or Python 3.3+ (may work on Python 2.5)\n\n\nLicense\n=======\n\nBSD\n\n\nDocs\n====\n\nhttp://chrono-bench.readthedocs.org/en/latest/\n\n\nShortcomings\n============\n\nThis is implemented in pure Python, so it doesn't have the accuracy a C\nextension would have. There's also overhead for the context manager function\ncalls, so don't use this to bench C code.\n\nThat said, for most everyday usage of Python, it's very helpful.\n\n\nRunning Tests\n=============\n\nSetup::\n\n $ git clone https://github.com/toastdriven/chrono.git\n $ cd chrono\n $ virtualenv -p python3 env3\n $ . env3/bin/activate\n $ pip install nose\n\nRunning::\n\n $ nosetests -s -v tests.py\n\n``chrono`` is maintained with 100% passing tests at all times.\n\n\nChangelog\n=========\n\nDev\n * Added links to the docs\n\nv1.0.1\n * Added initial docs\n * Fixed up the main docstring in ``Timer``\n\nv1.0.0\n * Initial release", "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/toastdriven/chrono", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "chrono", "package_url": "https://pypi.org/project/chrono/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/chrono/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/toastdriven/chrono" }, "release_url": "https://pypi.org/project/chrono/1.0.2/", "requires_dist": null, "requires_python": null, "summary": "A (BSD licensed) context manager for timing execution.", "version": "1.0.2" }, "last_serial": 934506, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "add09d122000171ed40683b1b6751b3a", "sha256": "1925c9fff573119e96e2099ec141598bf00679ed8b8babc7cac41b3c4275d5e1" }, "downloads": -1, "filename": "chrono-1.0.0.tar.gz", "has_sig": false, "md5_digest": "add09d122000171ed40683b1b6751b3a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2897, "upload_time": "2013-10-30T08:15:58", "url": "https://files.pythonhosted.org/packages/cf/9e/341bf9b50cdc9492404bc309792e49f2d0bbc014b72d72979eec63bf711a/chrono-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "578d746d93441ba3a029920f09b58c17", "sha256": "ac6c1781ab65f139c519b089d2c120f9a55a6f287f903b5efb7e2df82429c6f4" }, "downloads": -1, "filename": "chrono-1.0.1.tar.gz", "has_sig": false, "md5_digest": "578d746d93441ba3a029920f09b58c17", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3015, "upload_time": "2013-10-30T08:46:22", "url": "https://files.pythonhosted.org/packages/11/39/b22e8e982fbb8ed586740739bb8fd66b4f2a6dc61d0e09e15bd224b72bd1/chrono-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "f6bb1d57ec10efaa3f8ea6f87abc2473", "sha256": "91c0905cafe915579984ac18c8da631301391e44e9102945eefeadb8498af84b" }, "downloads": -1, "filename": "chrono-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f6bb1d57ec10efaa3f8ea6f87abc2473", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4074, "upload_time": "2013-12-03T09:40:26", "url": "https://files.pythonhosted.org/packages/be/2f/40c7dfa0de23a60b7e6e493bb471240688eb4e728eaadef53e1a184334c5/chrono-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "347daa2a079dc245ab2b439102315ae4", "sha256": "4bf8daa17229cd6df6ef59a96e6c43b845a1df94555190a3117505815685198c" }, "downloads": -1, "filename": "chrono-1.0.2.tar.gz", "has_sig": false, "md5_digest": "347daa2a079dc245ab2b439102315ae4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3119, "upload_time": "2013-12-03T09:39:41", "url": "https://files.pythonhosted.org/packages/94/a8/eb47ef906a298d6f40bb46fd91289237e547210c9d61aa8008bf5925140b/chrono-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f6bb1d57ec10efaa3f8ea6f87abc2473", "sha256": "91c0905cafe915579984ac18c8da631301391e44e9102945eefeadb8498af84b" }, "downloads": -1, "filename": "chrono-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f6bb1d57ec10efaa3f8ea6f87abc2473", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4074, "upload_time": "2013-12-03T09:40:26", "url": "https://files.pythonhosted.org/packages/be/2f/40c7dfa0de23a60b7e6e493bb471240688eb4e728eaadef53e1a184334c5/chrono-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "347daa2a079dc245ab2b439102315ae4", "sha256": "4bf8daa17229cd6df6ef59a96e6c43b845a1df94555190a3117505815685198c" }, "downloads": -1, "filename": "chrono-1.0.2.tar.gz", "has_sig": false, "md5_digest": "347daa2a079dc245ab2b439102315ae4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3119, "upload_time": "2013-12-03T09:39:41", "url": "https://files.pythonhosted.org/packages/94/a8/eb47ef906a298d6f40bb46fd91289237e547210c9d61aa8008bf5925140b/chrono-1.0.2.tar.gz" } ] }