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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for stopuhr-0.0.7.tar.gz
Algorithm Hash digest
SHA256 5f5c5dc01b3fbb1eed7d86f288bb1ab0d598caecdb5ac7ed75cb72f686d85601
MD5 40071ea79ca8559126b88a3cf1fbe6bb
BLAKE2b-256 a71911da83f4660d41e8cacafacb148ab573bc8de4a10a236bf256eb53d71b20

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for stopuhr-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ae27411597733a674277d994a0ad9a5352bfdfabe634c2af33c67e03e4cc70c3
MD5 37a0124b245ebf9cb6dd6a6c557944e4
BLAKE2b-256 938bbdaf2913c7f69501da8ef01431258f9220ccfbb684d596a6e465cdd8f6d7

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