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.3.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for pretty_errors-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5a68b0cafe414ff9edc662df7f35a49644eae5638d52f9711731166a6cbb9f2 |
|
MD5 | f6b8292d31c8e1027ad79f4b54c38d3d |
|
BLAKE2b-256 | f62601da1becc44768b5ab568942591cedc1185f189768f6b2829616e4bf4719 |