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.6.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.6-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stopuhr-0.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 8b4b42edc5991d5183f7452602fd619c11ff71746c3a0d34bee26d9b2b8528b5
MD5 783bdd5e0f24c7851ad28646b371de4e
BLAKE2b-256 8efd5aa15cbcefcd992264af54367971815d567f597857041d46f5551c255625

See more details on using hashes here.

File details

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

File metadata

  • Download URL: stopuhr-0.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 da4c0f544a81b489f459f5e3d0cdaafdebf16d4fc47d3ea0d2747c7a1826f203
MD5 14005d52db7ce39d8ca92eaf3dabed6c
BLAKE2b-256 aeb921b96656ab711b1f394fb82c5df99e595024c44f339e705b77ae6bd3687b

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