Pretty print exception details
Project description
ShowException
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.1.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for showexception-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a76402f3f91f80f12d398e6b937a53e5c1dbe4834ecfa53b56386ef7b0cf4316 |
|
MD5 | c84914291119ffacdbe156cbc6aadcdc |
|
BLAKE2b-256 | 9f5f1365e2e4f4501fc2156aae565c9daf70972668ab6214b84f6219889962e4 |