Sharetrace
A Python library & CLI for capturing and sharing comprehensive traceback information.
Overview
Sharetrace makes it easier to share Python exceptions and tracebacks with others by capturing:
- Full exception details (type, message, traceback)
- Code context around each frame in the stack trace
- Git repository information (if available)
- System information (Python version, platform, etc.)
- Local variable values at each frame
All this information is saved to a cache directory as JSON files that can later be used to generate shareable HTML reports.
Usage
Capture Traceback Information
import sharetrace
# Install the exception hook (call this early in your program)
sharetrace.install_exception_hook()
# Now any unhandled exceptions will be captured automatically
raise ValueError("This will be captured!")
Generate Shareable HTML Pages
Just invoke the interactive CLI!
sharetrace [--open-browser]
Examples
A demo traceback can be created with sharetrace_demo and visualized with sharetrace.
Notes
KeyboardInterruptandSystemExitare not captured (they use the default handler)- If the capture process fails, the original exception is still displayed
Metadata
Release files for sharetrace 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sharetrace-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for sharetrace-1.0.0-py3-none-any.whl |
Security for sharetrace 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.