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.5.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for pretty_errors-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59efc75198bdee6cbeef7b1812c91ced7b18ab55f3d8d1533d3ae576746b6fcf |
|
MD5 | 7c85dc956827b8d41d0641785edbf444 |
|
BLAKE2b-256 | 8b5ca02ab14bbef730298a1dd34cc2261e3c8d6606ebbb54e7eca1699eaf517a |