Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

Output pretty stack traces.

Project description

Pretty stack traces:

from prettystack import PrettyStackTemplate

prettystack_template = PrettyStackTemplate().to_console()

try:
    exception_raiser()
except Exception as exception:
    output(prettystack_template.current_stacktrace())

Output (colorized on a terminal window):

<ipython-input-4-2d951494fd2a>



[1]: function 'exception_raiser'
  /path/to/example1.py


        5 :
        6 : def exception_raiser():
    --> 7 :     raise CatchThis("Some kind of message")
        8 :



example1.CatchThis

    Some kind of docstring

Some kind of message

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
prettystack-0.3.0.tar.gz (4.3 kB) Copy SHA256 hash SHA256 Source None Sep 22, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page