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.5.tar.gz (113.8 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.5-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for stopuhr-0.0.5.tar.gz
Algorithm Hash digest
SHA256 828cb233f924d690a5ec7b29929b0f29168899cc4a9b12f44f3653d86a986a04
MD5 64d809a37e5b7e76fbd19b8dc0ecbe56
BLAKE2b-256 fa297514bfa56d3ba348e77fa3484d38fec57fed087b8e25f2edf0526860890c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for stopuhr-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 633a31d805152a1e765a0f8aba4bf943e0d9dc1966c778b63f5ed79882c76e7c
MD5 4f61aa810c0d12bb364ab88475032167
BLAKE2b-256 d9b81e2402eccbf3b6f1d778ba1d0a4cbad4a133a0c97c92d1a34216bbad9890

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