Name | yasiu.time JSON |
Version |
0.0.1
JSON |
| download |
home_page | |
Summary | Time decorators. Console timers. |
upload_time | 2023-01-04 22:14:06 |
maintainer | Grzegorz Krug |
docs_url | None |
author | Grzegorz Krug |
requires_python | >=3.7 |
license | MIT |
keywords |
time
timeit
measure time
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Readme of `yasiu.time`
Module with useful measure time decorators.
## Installation
```shell
pip install yasiu.time
```
## Time decorators
- **measure_perf_time_decorator**
*using time.perf_counter*
- **measure_real_time_decorator**
*using time.time*
### Import:
```py
from yasiu.time import measure_perf_time_decorator
```
### Print buffering will impact your performance!
- Use with cauction for multiple function calls
### Use examples
```py
@measure_perf_time_decorator()
def func():
...
@measure_perf_time_decorator(">4.1f")
def func():
...
@measure_perf_time_decorator(fmt=">4.1f")
def func():
...
```
## Console execution timer
not here yet.
Raw data
{
"_id": null,
"home_page": "",
"name": "yasiu.time",
"maintainer": "Grzegorz Krug",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "kruggrzegorz@gmail.com",
"keywords": "time,timeit,measure time",
"author": "Grzegorz Krug",
"author_email": "kruggrzegorz@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/f3/f6/c178f9613e63c7e31f28a93aa59566f25a58b2039e972604503c7d20dea0/yasiu.time-0.0.1.tar.gz",
"platform": null,
"description": "# Readme of `yasiu.time`\r\n\r\nModule with useful measure time decorators.\r\n\r\n## Installation\r\n\r\n```shell\r\npip install yasiu.time\r\n```\r\n\r\n## Time decorators\r\n\r\n- **measure_perf_time_decorator**\r\n\r\n *using time.perf_counter*\r\n\r\n- **measure_real_time_decorator**\r\n\r\n *using time.time*\r\n\r\n### Import:\r\n\r\n```py\r\nfrom yasiu.time import measure_perf_time_decorator\r\n```\r\n\r\n### Print buffering will impact your performance!\r\n\r\n- Use with cauction for multiple function calls\r\n\r\n### Use examples\r\n\r\n```py\r\n@measure_perf_time_decorator()\r\ndef func():\r\n ...\r\n\r\n\r\n@measure_perf_time_decorator(\">4.1f\")\r\ndef func():\r\n ...\r\n\r\n\r\n@measure_perf_time_decorator(fmt=\">4.1f\")\r\ndef func():\r\n ...\r\n```\r\n\r\n## Console execution timer\r\n\r\nnot here yet.\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Time decorators. Console timers.",
"version": "0.0.1",
"split_keywords": [
"time",
"timeit",
"measure time"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f3f6c178f9613e63c7e31f28a93aa59566f25a58b2039e972604503c7d20dea0",
"md5": "c82afd722007e5d38dde66185ce85f15",
"sha256": "797600d4462d490ac58ed2537b98cde863aec18b8314da4233b94af2f474bc77"
},
"downloads": -1,
"filename": "yasiu.time-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "c82afd722007e5d38dde66185ce85f15",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 3158,
"upload_time": "2023-01-04T22:14:06",
"upload_time_iso_8601": "2023-01-04T22:14:06.081691Z",
"url": "https://files.pythonhosted.org/packages/f3/f6/c178f9613e63c7e31f28a93aa59566f25a58b2039e972604503c7d20dea0/yasiu.time-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-04 22:14:06",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "yasiu.time"
}