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.8.tar.gz (114.5 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.8-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for stopuhr-0.0.8.tar.gz
Algorithm Hash digest
SHA256 d73ca58ffb80756f59ebeabda0627414b8b812944b06f3c6b5028e7fa8ab216e
MD5 9f139d5ec0a8e1e16c6e759a617eefd3
BLAKE2b-256 5a07250d7476cfb4ed5f2f8367a2eac509ebe1324fb1e6bcddf579d8a363eff1

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for stopuhr-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 4cd81585d38cf3e3dd34a6c48621b178d5a4e8c2a6d481a2a32dbed545c6aa30
MD5 563ad8976a54c507243926a5e701564a
BLAKE2b-256 c5e13d88ca850a412c054f9aeacc3c74ffd604638548ab52b6b38e04e19f12dc

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