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
timeit_plus-0.0.3.tar.gz
(1.5 kB
view hashes)
Built Distribution
Close
Hashes for timeit_plus-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 704a87ef4cbc94e10794f7e522711a66bf0f8248de5677765921ea188d5a2d13 |
|
MD5 | 7da180b10fae8026287424f399de5a79 |
|
BLAKE2b-256 | 92f758f04e89e9f702cc2278a414dd0ca07e589d4d9d72b24601e409d15d4834 |