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.

Source Distribution

timeit_plus-0.0.1.tar.gz (1.5 kB view hashes)

Uploaded Source

Built Distribution

timeit_plus-0.0.1-py3-none-any.whl (2.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page