{ "info": { "author": "Daniil Omelchenko", "author_email": "dpixelstudio@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "timepy\n======\n\n|Build Status| |Coverage Status| |PyPI version|\n\nThe simplest ever library for measuring time of python code execution.\n\nInstallation\n------------\n\n.. code:: bash\n\n pip install timepy\n\nHow to use\n----------\n\n.. code:: python\n\n from timepy import Timer\n\nIt's simple:\n~~~~~~~~~~~~\n\n.. code:: python\n\n t = Timer()\n\n t.start()\n # Your code which you want to measure\n t.stop()\n print(t.total_time)\n\nYou can give a name fro your timer:\n\n.. code:: python\n\n t = Timer('My second timer')\n\nKeep every moment you want\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nYou can\n\n.. code:: python\n\n t = Timer()\n t.start()\n # Some heavy work 1\n t.commit('Work 1 is done')\n # Some heave work 2\n t.commit('Work 2 is done')\n t.stop()\n\n print(t.events)\n\n # will output:\n # [,\n # ,\n # ,\n # ]\n\nMeasure your iterations\n~~~~~~~~~~~~~~~~~~~~~~~\n\n.. code:: python\n\n t = Timer()\n t.start\n for i in some_list:\n # do heavy work\n t.lap()\n t.stop()\n\n print(t.laps[0]) # \n print(t.laps) # see all laps\n print(t.average_lap) # average lap duration\n\n.. |Build Status| image:: https://travis-ci.org/daniil-omelchenko/timepy.svg?branch=master\n :target: https://travis-ci.org/daniil-omelchenko/timepy\n.. |Coverage Status| image:: https://coveralls.io/repos/github/daniil-omelchenko/timepy/badge.svg?branch=master\n :target: https://coveralls.io/github/daniil-omelchenko/timepy?branch=master\n.. |PyPI version| image:: https://badge.fury.io/py/timepy.svg\n :target: https://badge.fury.io/py/timepy\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/daniil-omelchenko/timepy/archive/master.zip", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/daniil-omelchenko/timepy", "keywords": "timer,debugging,testing,measurement,performance,logging", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "timepy", "package_url": "https://pypi.org/project/timepy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/timepy/", "project_urls": { "Download": "https://github.com/daniil-omelchenko/timepy/archive/master.zip", "Homepage": "https://github.com/daniil-omelchenko/timepy" }, "release_url": "https://pypi.org/project/timepy/0.1a/", "requires_dist": null, "requires_python": null, "summary": "The simplest ever library for measuring time of python code execution.", "version": "0.1a" }, "last_serial": 2719787, "releases": { "0.1a": [ { "comment_text": "", "digests": { "md5": "f5fa10869db4377d26ffb335b5624530", "sha256": "e76cf6431ec7c0cf7e6a282acdbfb5f4bb0669c7669a39355d38086536aad07d" }, "downloads": -1, "filename": "timepy-0.1a.tar.gz", "has_sig": false, "md5_digest": "f5fa10869db4377d26ffb335b5624530", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3411, "upload_time": "2017-03-21T09:30:12", "url": "https://files.pythonhosted.org/packages/2b/0b/a99f37640ff7493beeb54dd8a3f85043a87aa5c4077e9fa39459b88212db/timepy-0.1a.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f5fa10869db4377d26ffb335b5624530", "sha256": "e76cf6431ec7c0cf7e6a282acdbfb5f4bb0669c7669a39355d38086536aad07d" }, "downloads": -1, "filename": "timepy-0.1a.tar.gz", "has_sig": false, "md5_digest": "f5fa10869db4377d26ffb335b5624530", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3411, "upload_time": "2017-03-21T09:30:12", "url": "https://files.pythonhosted.org/packages/2b/0b/a99f37640ff7493beeb54dd8a3f85043a87aa5c4077e9fa39459b88212db/timepy-0.1a.tar.gz" } ] }