Skip to main content

A simple tool for measuring durations in Python.

Project description

stopuhr

A simple tool for measuring durations in Python.

Installation

You can install stopuhr via pip:

pip install stopuhr

However, uv is recommended for installing python packages:

uv add stopuhr

Usage

With stopuhr it is convinient to measure durations in Python:

import time
from stopuhr import stopwatch

with stopwatch("My Timer"):
    # Do something
    time.sleep(2)
>>> My Timer took 2.00s

@stopwatch("My Timer")
def my_function():
    # Do something
    time.sleep(2)

>>> My Timer took 2.00s

This library can much more than that. Visit the reference or example section for more details.

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

stopuhr-0.0.11.tar.gz (122.0 kB view details)

Uploaded Source

Built Distribution

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

stopuhr-0.0.11-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file stopuhr-0.0.11.tar.gz.

File metadata

  • Download URL: stopuhr-0.0.11.tar.gz
  • Upload date:
  • Size: 122.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.7

File hashes

Hashes for stopuhr-0.0.11.tar.gz
Algorithm Hash digest
SHA256 832f58b8003b66c432e53f2775c8b0b51aa8d4ba151b3764597d2db345cffe53
MD5 6a26e67aa24e789444eacee5b07e226a
BLAKE2b-256 f2069ed2ee4ccb50e689bacf3ae908bb5bfb7b9650efb85023667ada407e6608

See more details on using hashes here.

File details

Details for the file stopuhr-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: stopuhr-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.7

File hashes

Hashes for stopuhr-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 ce988ede9577963e74ad19b34b1103373530af10f3ba28792bbd40398c225639
MD5 d4bfa5da36aa14b2f232afa8e03fbe86
BLAKE2b-256 e5ec22c2e3e076e724db9d3d53e244a06f89b58b98953e0d4fd1035b7895c2e9

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