execution-time-wrapper-1.0.0
توضیحات
A Python package with some simple wrapper functions to print the execution time of methods
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | execution-time-wrapper-1.0.0 |
| نام | execution-time-wrapper |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Leonardo Alchieri |
| ایمیل نویسنده | leonardo@alchieri.eu |
| آدرس صفحه اصلی | https://github.com/LeonardoAlchieri/ExecutionTimeWrapper |
| آدرس اینترنتی | https://pypi.org/project/execution-time-wrapper/ |
| مجوز | MIT |
[](https://pypi.org/project/execution-time-wrapper/)
[](https://pypi.org/project/execution-time-wrapper/)
[](https://pypi.org/project/execution-time-wrapper/)
[](https://pepy.tech/project/execution-time-wrapper)
# Execution Time Wrapper
A simple package with a few method to get the execution time of methods through wrapping.
## Usage
Currently, the package contains two methods, one which returns to sdout (print) and one which goes to a logger.
```python
from execution_time import get_execution_time_log
@get_execution_time_log
def my_fun():
print("Hello World!")
```
The same for the other method given, i.e. `get_execution_time_print`.
## TODOs
[ ] Implement logger level
@2022, Leonardo Alchieri
<sub>People-Centered Computing Lab - [Università della Svizzera italiana, Switzerland](https://www.usi.ch/en)</sub>
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl execution-time-wrapper-1.0.0:
pip install execution-time-wrapper-1.0.0.whl
نصب پکیج tar.gz execution-time-wrapper-1.0.0:
pip install execution-time-wrapper-1.0.0.tar.gz