Metadata-Version: 2.1
Name: prettystack
Version: 0.3.0
Summary: Output pretty stack traces.
Home-page: https://github.com/crdoconnor/prettystack
Author: Colm O'Connor
Author-email: colm.oconnor.github@gmail.com
License: AGPL
Keywords: stack traces traceback
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Software Development :: Libraries
Classifier: Operating System :: Unix
Classifier: Environment :: Console
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
License-File: LICENSE.txt

PrettyStack
===========

Pretty stack traces:

.. code-block:: python

        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
