Aimed at Python beginners: replacing standard traceback by something easier to understand, translatable into various languages.
pip install friendly-traceback
In some terminal console, friendly-traceback can make use of Rich if it is installed; this must be done separately since Rich is not required for this project, although it is strongly recommended if your terminal console supports it.
Full documentation available here
Friendly-traceback is alpha. The current focus is on quickly increasing the number of exceptions covered. We strive to test the code as new additions are made: everything included should work. However, the code itself could probably be refactored and could definitely be better documented.
See the documentation. Note that Friendly-traceback uses Black.
Some of the ideas were adopted from DidYouMean-Python (aka BetterErrorMessages) by Sylvain Desodt, a project that is also using the MIT license.
We support the Python Community Code of Conduct. Contributors to this project, including those filing or commenting on an issue, are expected to do the same.