Skip to main content

Decorator to print how long each decorated function takes to complete.

Project description

timed-functions

Decorator to print how long each decorated function takes to complete.

How to use

from timed_functions import timing

@timing
def say_hello(name):
    print(f"Hello {name}")

Output:

Hello World
@timing - 'say_hello' function took 0.023 ms

How to deploy

python3 -m pip install --user --upgrade setuptools wheel
python3 -m pip install --user --upgrade twine

python3 setup.py sdist bdist_wheel
python3 -m twine upload --repository testpypi dist/*

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

timed-functions-0.2.0.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

timed_functions-0.2.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file timed-functions-0.2.0.tar.gz.

File metadata

  • Download URL: timed-functions-0.2.0.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

File hashes

Hashes for timed-functions-0.2.0.tar.gz
Algorithm Hash digest
SHA256 dd426ac1361d11a4cb3ea1c565b2c4a5627d43eb70ec0a18df21a8e1b6d3551d
MD5 1cde575ff4ba03762bd262fef064e525
BLAKE2b-256 541a44a0023c9e75005b53d3f025a86f3fe3dfbd1c895b0d24f6feebeeed67f7

See more details on using hashes here.

File details

Details for the file timed_functions-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: timed_functions-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 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/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

File hashes

Hashes for timed_functions-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 836e6a63bc62b2f685396a383cb5bc597aa87489f23fdfafe40327fb5a14a4e6
MD5 34adeb57e17750c149df5ac5391caab4
BLAKE2b-256 7bb683244216319c1b41f47e486d8b1dff5abc56b85bc2eb00f54073480d863c

See more details on using hashes here.

Supported by

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