better_exceptions | ||
test | ||
.editorconfig | ||
.gitignore | ||
.travis.yml | ||
LICENSE.txt | ||
README.md | ||
screenshot.png | ||
setup.cfg | ||
setup.py | ||
test_all.sh |
better-exceptions
Pretty and more helpful exceptions in Python, automatically.
Usage
Install better_exceptions
via pip:
$ pip install better_exceptions
And import it somewhere:
import better_exceptions
That's it!
Advanced Usage
If you want to allow the entirety of values to be outputted instead of being truncated to a certain amount of characters:
better_exceptions.MAX_LENGTH = None
See Also
- paradoxxxzero/better-exceptions-hook - removes the need to
import better_exceptions
by adding a startup hook
License
Copyright © 2017, Josh Junon. Licensed under the MIT license.