Skip to main content

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: TBC
  • email_config: TBC
  • logger: TBC

This README is still wip, check out decorator docstring for more info.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for timeit-plus, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size timeit_plus-0.0.3-py3-none-any.whl (2.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size timeit_plus-0.0.3.tar.gz (1.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page