Powertrace
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
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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| powertrace-0.2.0.tar.gz | 5.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| powertrace-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.8 kB
Release files / powertrace-0.2.0.tar.gz
| Download URL | powertrace-0.2.0.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
536c6dff3f3ba642ac7e77ac586044ba0821fe66a43a1fda22445a1beff166dc
|
|
BLAKE2b-256 checksum How to use checksums |
a3ee4ce63f62c636d1fff6501f43481f3ea282401d05d0d37288f763a3aeebef
|
| 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.0-py3-none-any.whl
| Download URL | powertrace-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
784948e02edab300fa2aac0506bcc7d5259800660bdca9e9a1fe8206a74b74c8
|
|
BLAKE2b-256 checksum How to use checksums |
5e439edccaaacd9cdd2282f2c272f7b909f3f58e112e268a4869c5ad25f0ac25
|
| 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}
|