Prettifies Python exception output to make it legible.
Project description
pretty-errors
Prettifies Python exception output to make it legible. Install it with
python -m pip install pretty-errors
Then use it simply by importing it:
import pretty_errors
Note you need to be running in a terminal capable of colour output in order to get colour output: in Windows this means powershell, cmder, etc.
If you want to configure the output then use pretty_errors.configure()
. For example:
import pretty_errors
pretty_errors.configure(
seperator_character = '—',
line_length = 54,
filename_display = pretty_errors.FilenameDisplayMode.FULL
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pretty_errors-1.0.2.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for pretty_errors-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e8d5a278ca3279728c5d66da94bda8e1bd878c0d19c69816546d87b43779b40 |
|
MD5 | 7f350507705a074c129adce091c38b02 |
|
BLAKE2b-256 | afd7567caebf5ec4081ddf15d37730a88dfe3a1ea83ddd709c557a2b952c2c43 |