Skip to main content

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.

Metadata

Release files for timeit-plus 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for timeit-plus 0.0.3
File Size Uploaded
timeit_plus-0.0.3.tar.gz 1.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for timeit-plus 0.0.3
File Interpreter ABI Platform
timeit_plus-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 3.9 kB

Release files / timeit_plus-0.0.3.tar.gz

Download URL timeit_plus-0.0.3.tar.gz
Size 1.5 kB
Tags Source
SHA-256 checksum
How to use checksums
60be1f6ea76d886bc93a09ff00148765738dea6a3ddc53d1901d62af1940d39e
BLAKE2b-256 checksum
How to use checksums
4f9ee0dac7fcf29e9bded61d0bd0d719695574253c9076113ecb3bbbcfa8877d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / timeit_plus-0.0.3-py3-none-any.whl

Download URL timeit_plus-0.0.3-py3-none-any.whl
Size 2.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
704a87ef4cbc94e10794f7e522711a66bf0f8248de5677765921ea188d5a2d13
BLAKE2b-256 checksum
How to use checksums
92f758f04e89e9f702cc2278a414dd0ca07e589d4d9d72b24601e409d15d4834
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page