Name | timespy JSON |
Version |
1.0.0
JSON |
| download |
home_page | https://github.com/croketillo/timespy |
Summary | Timespy is a lightweight Python decorator that measures the execution time of functions, providing an easy way to analyze and optimize performance. |
upload_time | 2025-02-22 05:55:49 |
maintainer | None |
docs_url | None |
author | Croketillo |
requires_python | >=3.6 |
license | GPL-3.0-or-later |
keywords |
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
 |  |  |  |  |  |  |  |  |  | 
# TimeSpy ⏱
Timespy is a lightweight Python decorator that measures the execution time of functions, providing an easy way to analyze and optimize performance.
## Installation
```sh
pip install timespy
```
## Usage
```sh
from timespy import timer
@timer
def my_function():
import time
time.sleep(1)
my_function()
print(f"Execution time: {my_function.exec_time:.6f}s")
```
## License
TimeSpy is licensed under the GNU General Public License v3 (GPLv3).
See LICENSE for more details.
Raw data
{
"_id": null,
"home_page": "https://github.com/croketillo/timespy",
"name": "timespy",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "Croketillo",
"author_email": "croketillo@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/b4/cb/ccbba771de83df795d6773b67d63a5cc527a05851fda7e25f72c3abfac74/timespy-1.0.0.tar.gz",
"platform": null,
"description": " |  |  |  |  |  |  |  |  |  | \n\n\n# TimeSpy \u23f1\nTimespy is a lightweight Python decorator that measures the execution time of functions, providing an easy way to analyze and optimize performance.\n\n## Installation\n```sh\npip install timespy\n```\n\n## Usage\n\n```sh\nfrom timespy import timer\n\n@timer\ndef my_function():\n import time\n time.sleep(1)\n\nmy_function()\nprint(f\"Execution time: {my_function.exec_time:.6f}s\")\n```\n\n## License\n\nTimeSpy is licensed under the GNU General Public License v3 (GPLv3).\nSee LICENSE for more details.\n",
"bugtrack_url": null,
"license": "GPL-3.0-or-later",
"summary": "Timespy is a lightweight Python decorator that measures the execution time of functions, providing an easy way to analyze and optimize performance.",
"version": "1.0.0",
"project_urls": {
"Homepage": "https://github.com/croketillo/timespy"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "fb8cbee5daf59b4e7cdf955d072314262ea6d769e0b0e5afd68a3c401207bae9",
"md5": "b46b9a5c0f2dcc967dc9d1ea5ba99377",
"sha256": "ce223b9af2f8aff2d0ed61ae9c7b1b155c8e2df0ac6a7aee095baf8ae6d58dad"
},
"downloads": -1,
"filename": "timespy-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b46b9a5c0f2dcc967dc9d1ea5ba99377",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 15142,
"upload_time": "2025-02-22T05:55:45",
"upload_time_iso_8601": "2025-02-22T05:55:45.574966Z",
"url": "https://files.pythonhosted.org/packages/fb/8c/bee5daf59b4e7cdf955d072314262ea6d769e0b0e5afd68a3c401207bae9/timespy-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "b4cbccbba771de83df795d6773b67d63a5cc527a05851fda7e25f72c3abfac74",
"md5": "f4ce4413bcacb3679edfb5ec165952f1",
"sha256": "8be853f0ff058445306df8c35865f831844c655fa03852118fa633dff45de9f0"
},
"downloads": -1,
"filename": "timespy-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "f4ce4413bcacb3679edfb5ec165952f1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 14946,
"upload_time": "2025-02-22T05:55:49",
"upload_time_iso_8601": "2025-02-22T05:55:49.037052Z",
"url": "https://files.pythonhosted.org/packages/b4/cb/ccbba771de83df795d6773b67d63a5cc527a05851fda7e25f72c3abfac74/timespy-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-22 05:55:49",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "croketillo",
"github_project": "timespy",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "timespy"
}