just like timeit, but meant as a decorator
Project description
This is intended as decorator version of the built-in timeit Python module.
Extras include sending emails when time thresholds are exceeded and capability of using your own logger.Logger() instance to log messages.
Built with Django in mind, but can be used with Python in general.
Usage:
from timeit_plus import tplus
@tplus()
def foo(bar):
return bar
Optional keyword arguments you can pass to the tplus() decorator:
max_time: TBCemail_config: TBClogger: TBC
This README is still wip, check out decorator docstring for more info.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file timeit_plus-0.0.3.tar.gz.
File metadata
- Download URL: timeit_plus-0.0.3.tar.gz
- Upload date:
- Size: 1.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60be1f6ea76d886bc93a09ff00148765738dea6a3ddc53d1901d62af1940d39e
|
|
| MD5 |
2c3ac470fd459f8a69cc53e63211b352
|
|
| BLAKE2b-256 |
4f9ee0dac7fcf29e9bded61d0bd0d719695574253c9076113ecb3bbbcfa8877d
|
File details
Details for the file timeit_plus-0.0.3-py3-none-any.whl.
File metadata
- Download URL: timeit_plus-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
704a87ef4cbc94e10794f7e522711a66bf0f8248de5677765921ea188d5a2d13
|
|
| MD5 |
7da180b10fae8026287424f399de5a79
|
|
| BLAKE2b-256 |
92f758f04e89e9f702cc2278a414dd0ca07e589d4d9d72b24601e409d15d4834
|