A minimal library for presenting structured error chains with causes, context, and more, enabling better debugging in Python >=3.10. Current version: 3.0.0. Release cadence is irregular.
pip install diagnosticNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a diagnostic error with cause and print a formatted presentation.
Upgrade Python to 3.10 or later, or pin diagnostic to <3.0.0.
Always catch DiagnosticError explicitly, or use `except BaseException:` if you must catch everything (not recommended).
Use `DiagnosticError('message', cause=exc)` instead of `DiagnosticError.with_cause('message', exc)`.Uninstall any local diagnostic.py, then `pip install --upgrade diagnostic` (>=3.0.0).
Check version: if <3.0.0, use `e.__cause__`; if >=3.0.0, use `e.cause`.
Pass the error: `present(error_instance)`.
No dependency data recorded yet.