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

Uploaded Python 3

File details

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

File metadata

  • Download URL: stopuhr-0.0.9.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.9.tar.gz
Algorithm Hash digest
SHA256 dcdedba3988d56e2ad6691e14cee95d18f0504ac92439223e96a9fb68bc1bfb2
MD5 33583fb6890e2436b1f063b555caf9f1
BLAKE2b-256 2cd6c770f69f5a6943ff893f687c724838fbb6279e0d520ab64f8ec2e8ce0db4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: stopuhr-0.0.9-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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 c6b8c37bcbc553d8a2cd578d59c63709f4629e97629cba5bbd802bb14b466cb0
MD5 023bad552cf3755711ab0069214a5535
BLAKE2b-256 2309deead6586d32dd1ad3c237181e51e011c5b485914d8b3c69ca4ec562eb09

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