clockwise


Nameclockwise JSON
Version 1.0.4 PyPI version JSON
download
home_pageNone
SummaryA simple timing library for Python
upload_time2024-12-22 05:22:41
maintainerNone
docs_urlNone
authorNone
requires_python>=3.0
licenseNone
keywords profiling
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # clockwise 🕰️
Simple but expressive timing package in Python

## Installation
```
pip install clockwise
```

## Minimal Example
```
import clockwise

@clockwise.timing("time-as-decorator")
def foo(a: int): 
   return a + 4

def main():
    for i in range(10):
        foo(i)

    with clockwise.timing_context("time-as-context"):
        foo(1)

    clockwise.print_timings() 

if __name__ == '__main__':
    main()
```

## Debug Mode
The profiling is skipped when running in optimized mode using the `-O` or `-OO` tags. 

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "clockwise",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.0",
    "maintainer_email": "Simon Schaefer <simon.k.schaefer@gmail.com>",
    "keywords": "profiling",
    "author": null,
    "author_email": "Simon Schaefer <simon.k.schaefer@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/9f/44/c1f6dc97778ccc17821d8ff681376e0f19f3c1c1ffcd47bab8aea2d32e01/clockwise-1.0.4.tar.gz",
    "platform": null,
    "description": "# clockwise \ud83d\udd70\ufe0f\nSimple but expressive timing package in Python\n\n## Installation\n```\npip install clockwise\n```\n\n## Minimal Example\n```\nimport clockwise\n\n@clockwise.timing(\"time-as-decorator\")\ndef foo(a: int): \n   return a + 4\n\ndef main():\n    for i in range(10):\n        foo(i)\n\n    with clockwise.timing_context(\"time-as-context\"):\n        foo(1)\n\n    clockwise.print_timings() \n\nif __name__ == '__main__':\n    main()\n```\n\n## Debug Mode\nThe profiling is skipped when running in optimized mode using the `-O` or `-OO` tags. \n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A simple timing library for Python",
    "version": "1.0.4",
    "project_urls": null,
    "split_keywords": [
        "profiling"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cfbb0646912ad32f8638524a5279e54dfba3b47e56bf02905c873523374a9a89",
                "md5": "48bd6b4745816b0930ecbef380528fd1",
                "sha256": "8d62a5ab1966eb8ae7ca81f8dc35c46e715fd3a8bc19788885ec6a325ed37145"
            },
            "downloads": -1,
            "filename": "clockwise-1.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "48bd6b4745816b0930ecbef380528fd1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.0",
            "size": 4009,
            "upload_time": "2024-12-22T05:22:38",
            "upload_time_iso_8601": "2024-12-22T05:22:38.928763Z",
            "url": "https://files.pythonhosted.org/packages/cf/bb/0646912ad32f8638524a5279e54dfba3b47e56bf02905c873523374a9a89/clockwise-1.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9f44c1f6dc97778ccc17821d8ff681376e0f19f3c1c1ffcd47bab8aea2d32e01",
                "md5": "d9697823a46f5bbd498bb06c5458481c",
                "sha256": "331c591080a775bd38142b70c156f9d74f7353a4f39e6cd9ecd3946adbc3cea9"
            },
            "downloads": -1,
            "filename": "clockwise-1.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "d9697823a46f5bbd498bb06c5458481c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.0",
            "size": 3443,
            "upload_time": "2024-12-22T05:22:41",
            "upload_time_iso_8601": "2024-12-22T05:22:41.026645Z",
            "url": "https://files.pythonhosted.org/packages/9f/44/c1f6dc97778ccc17821d8ff681376e0f19f3c1c1ffcd47bab8aea2d32e01/clockwise-1.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-22 05:22:41",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "clockwise"
}
        
Elapsed time: 2.75240s