Skip to main content

Powertrace

PyPI version PyPI downloads Python version Operating system Coverage

Improved rich tracebacks:

  • Handles exceptions in threads
  • Includes failed subprocess output
  • Can be auto-enabled in every Python process
  • Imports nothing until an exception occurs: over 100x less startup overhead than rich's own hook

example

Usage

import powertrace

powertrace.install()

Call at the top of a script to render its uncaught exceptions.

import powertrace

try:
    ...
except Exception:
    powertrace.show_exception()

Renders the exception being handled.

Installation

pip install powertrace        # call install() yourself
pip install powertrace-hooks  # no need to call install()

Metadata

Release files for powertrace 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for powertrace 0.2.1
File Size Uploaded
powertrace-0.2.1.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for powertrace 0.2.1
File Interpreter ABI Platform
powertrace-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.8 kB

Release files / powertrace-0.2.1.tar.gz

Download URL powertrace-0.2.1.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
82dcbc973b244d0eae0eeb9fb8e8a34c9e444330598eccc6c8cddd81cb2a4a99
BLAKE2b-256 checksum
How to use checksums
1ad3b9bb226ea65a8636b2cd5c267952571a08594ce4f26dc67d873b8eff379e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / powertrace-0.2.1-py3-none-any.whl

Download URL powertrace-0.2.1-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b617ae734171c1db380c506dee1904971cab7976ea6f93448200e97c99ee643
BLAKE2b-256 checksum
How to use checksums
f297fbdb7f5654cc3384210da6a774d68c921dafc9e2b23c45fb802191bf9ff8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page