Skip to main content

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

MIT

Project details


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 details)

Uploaded Source

Built Distribution

showexception-0.1.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file showexception-0.1.1.tar.gz.

File metadata

  • Download URL: showexception-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.4

File hashes

Hashes for showexception-0.1.1.tar.gz
Algorithm Hash digest
SHA256 389672a1b10764b95e1a2fa6e2c3336d14ef2cad30225f81b8aefdb75fbefdec
MD5 6b4f830b16e59df01837cd28f11652f3
BLAKE2b-256 6bfb5a0a45c72fbb33b793265b8308a3b36b9dca5ce9e3ca76d3b90fc6133764

See more details on using hashes here.

File details

Details for the file showexception-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for showexception-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a76402f3f91f80f12d398e6b937a53e5c1dbe4834ecfa53b56386ef7b0cf4316
MD5 c84914291119ffacdbe156cbc6aadcdc
BLAKE2b-256 9f5f1365e2e4f4501fc2156aae565c9daf70972668ab6214b84f6219889962e4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page