{ "info": { "author": "Eric Dramstad", "author_email": "edrams@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "*********************************\n **backports.time_perf_counter**\n*********************************\n\nThis package contains a backport_ of the `time.perf_counter()`_\nfunction introduced in Python 3.3. This package is intended for use\nwith Python versions older than 3.3 but will work just fine under\nnewer Pythons. When used with Python 3.3 and newer, the main module\nsimply exports ``time.perf_counter()``.\n\nThe backported functionality is based on the pseudocode_ in :PEP:`418`\nthat describes how ``time.perf_counter()`` could be implemented. When\nused with Python versions older than 3.3, the exported\n``perf_counter()`` function relies on the ``monotonic()`` function\nprovided by the monotonic_ package.\n\n.. _backport: https://en.wikipedia.org/wiki/Backporting\n.. _time.perf_counter(): https://docs.python.org/3.3/library/time.html#time.perf_counter\n.. _pseudocode: https://www.python.org/dev/peps/pep-0418/#time-perf-counter\n.. _monotonic: https://pypi.org/project/monotonic/\n\n=======\n Usage\n=======\n\nI recommend not introducing a dependency on this package under Pythons\nwhich provide ``time.perf_counter()``. In your package's\n``setup.py``:\n\n.. code:: python\n\n import setuptools\n setuptools.setup(\n install_requires=[\n 'backports.time_perf_counter; python_version < \"3.3\"'\n ]\n )\n\nIn the module that relies on ``perf_counter()``:\n\n.. code:: python\n\n try:\n # Python >= 3.3\n from time import perf_counter\n except ImportError:\n # Python < 3.3\n from backports.time_perf_counter import perf_counter\n\n=======\n Tests\n=======\n\nThis package's tests use the builtin unittest_ and can be run without\nfirst installing the package:\n\n.. code:: console\n\n python setup.py test\n\nThe test cases are based on tests_ from the Python standard library's\n``time`` module that exercise ``time.perf_counter()``. There are an\nadmittedly small number of tests; pull requests with more tests are\nwelcome.\n\n.. _unittest: https://docs.python.org/3/library/unittest.html\n.. _tests: https://github.com/python/cpython/blob/master/Lib/test/test_time.py\n\n============\n Change Log\n============\n\n--------------------\n 0.0.4 - 2019-03-25\n--------------------\n\nFixed\n=====\n\n- [`#1`_] import from ``ctypes`` fails\n\n.. _#1: https://github.com/ejd/backports.time_perf_counter/issues/1\n\n--------------------\n 0.0.3 - 2019-03-23\n--------------------\n\nFixed\n=====\n\n- corrected the trove classifier for the package's license\n\n--------------------\n 0.0.2 - 2019-03-23\n--------------------\n\nChanged\n=======\n\n- ``setup.cfg`` now enables universal wheels\n\n--------------------\n 0.0.1 - 2019-03-23\n--------------------\n\nInitial release.\n\n\n", "description_content_type": "text/x-rst; charset=UTF-8", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ejd/backports.time_perf_counter", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "backports.time-perf-counter", "package_url": "https://pypi.org/project/backports.time-perf-counter/", "platform": "", "project_url": "https://pypi.org/project/backports.time-perf-counter/", "project_urls": { "Homepage": "https://github.com/ejd/backports.time_perf_counter" }, "release_url": "https://pypi.org/project/backports.time-perf-counter/0.0.4/", "requires_dist": [ "setuptools", "monotonic ; python_version < \"3.3\"" ], "requires_python": "", "summary": "time.perf_counter() for Python < 3.3", "version": "0.0.4" }, "last_serial": 4985559, "releases": { "0.0.3": [ { "comment_text": "", "digests": { "md5": "9c18fc143f0a5a2f72fdb76324c5a7c9", "sha256": "c6109bbfe9714a2c030bd87e946359e9f2830d4c899470cfca6db1dc2cc46bfc" }, "downloads": -1, "filename": "backports.time_perf_counter-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9c18fc143f0a5a2f72fdb76324c5a7c9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4666, "upload_time": "2019-03-23T19:01:42", "url": "https://files.pythonhosted.org/packages/24/72/f97bb3c45033267ff4cb68c8e210ae04582f8c9f2aff42922674457aa32a/backports.time_perf_counter-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e79f14b89140aef5beea4c3d3016b831", "sha256": "294ab076c584f92abded69bf8fb61fbe965bb6448aa932ef5c778549a7bba482" }, "downloads": -1, "filename": "backports.time_perf_counter-0.0.3.tar.gz", "has_sig": false, "md5_digest": "e79f14b89140aef5beea4c3d3016b831", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4502, "upload_time": "2019-03-23T19:01:44", "url": "https://files.pythonhosted.org/packages/b3/0c/030c93855950cc8344759532ef1b2d685b8c13db6e6b4bfd397fdf2571a2/backports.time_perf_counter-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "0c55982a284845458593906da40dddec", "sha256": "d44ae51a4c38f4cf3c045f7374a80d49eaf7eeea8308ae03aeaa3be9560638ce" }, "downloads": -1, "filename": "backports.time_perf_counter-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0c55982a284845458593906da40dddec", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4715, "upload_time": "2019-03-26T02:01:55", "url": "https://files.pythonhosted.org/packages/aa/cb/ca66974161c1cb4da609a7483d38efac1acf6710dca118f968f87b84daf1/backports.time_perf_counter-0.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cb0f47046b65ee2152fc5798869879ba", "sha256": "6be205f204e470e59b1553965d1120395c1a2ccf11f6ec4fa6f0c5e1d0cc9328" }, "downloads": -1, "filename": "backports.time_perf_counter-0.0.4.tar.gz", "has_sig": false, "md5_digest": "cb0f47046b65ee2152fc5798869879ba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4570, "upload_time": "2019-03-26T02:01:56", "url": "https://files.pythonhosted.org/packages/55/5d/03e31063e1374de1c5abdc19ba6c649792b5f9612d62c117b9a3e5bc5b1b/backports.time_perf_counter-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0c55982a284845458593906da40dddec", "sha256": "d44ae51a4c38f4cf3c045f7374a80d49eaf7eeea8308ae03aeaa3be9560638ce" }, "downloads": -1, "filename": "backports.time_perf_counter-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0c55982a284845458593906da40dddec", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4715, "upload_time": "2019-03-26T02:01:55", "url": "https://files.pythonhosted.org/packages/aa/cb/ca66974161c1cb4da609a7483d38efac1acf6710dca118f968f87b84daf1/backports.time_perf_counter-0.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cb0f47046b65ee2152fc5798869879ba", "sha256": "6be205f204e470e59b1553965d1120395c1a2ccf11f6ec4fa6f0c5e1d0cc9328" }, "downloads": -1, "filename": "backports.time_perf_counter-0.0.4.tar.gz", "has_sig": false, "md5_digest": "cb0f47046b65ee2152fc5798869879ba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4570, "upload_time": "2019-03-26T02:01:56", "url": "https://files.pythonhosted.org/packages/55/5d/03e31063e1374de1c5abdc19ba6c649792b5f9612d62c117b9a3e5bc5b1b/backports.time_perf_counter-0.0.4.tar.gz" } ] }