Pretty print exception details
Project description
QuickColor
ShowException is a Python exception display assitant providing pretty print capability of exception details from a specified code area/module name. CLI test functionality provided to demo display characteristics for several exception types.
Installation
Use the package manager pip to install showexception.
pip install showexception
Library Usage
from showexception.showexception import exception_details
try:
x = 1/0
except Exception as e:
exception_details(e, 'test-except-show')
CLI Utility
The following CLI is included with this package for visualizing a few exceptions.
# testexcept -h
usage: testexcept [-h] [-r] {test.zero.div,test.name.err,test.type.err} ...
-.-.-. Exception Content Display for python scripts
positional arguments:
{test.zero.div,test.name.err,test.type.err}
test.zero.div display exception info for a divide by zero exception
test.name.err display exception info for a name error exception
test.type.err display exception info for a type error exception
options:
-h, --help show this help message and exit
-r, --raw show raw exception details
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
License
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
showexception-0.1.0.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for showexception-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 300586e932457d1a5c139128cc93e99042f97e3536efd3d7acb175dc3fc8614b |
|
MD5 | 2b3668f4ca4c8725c6ff2b4385771062 |
|
BLAKE2b-256 | 32ef70e9e13fda7d3d5800e925b98f32d82ec3e5ffa11fd83c508f2ad89b5e17 |