Metadata-Version: 1.0
Name: xtraceback
Version: 0.2
Summary: An extended traceback formatter
Home-page: https://github.com/ischium/xtraceback
Author: Ischium
Author-email: support@ischium.net
License: MIT
Description: XTraceback
        ==========
        
        Extended Python traceback formatter with support for variable expansion and
        syntax highlighting::
        
        import sys
        import traceback
        import xtraceback
        
        # inline
        try:
        raise Exception()
        except:
        xtb = xtraceback.XTraceback(*sys.exc_info())
        xtb.print_exception()
        
        # as a context manager - the stdlib traceback module is monkey patched
        with xtraceback:
        try:
        raise Exception()
        except:
        traceback.print_exc()
        
        # as a sys.excepthook
        xtraceback.compat.install_excepthook()
        
        In a python startup file::
        
        if __name__ == "__main__":
        import xtraceback
        xtraceback.compat.install_excepthook()
        
        Then tell python to use the startup file::
        
        export PYTHONSTARTUP=/path/to/startup.py
        
        Configuration
        =============
        
        Options are passed as keyword arguments to the XTraceback constructor.
        
        - offset=0 - Traceback offset
        - limit=None - Traceback limit
        - context=5 - Number of lines of context to show
        - show_args=True - Show frame args
        - show_locals=True - Show line locals
        - show_globals=False - Show globals
        - qualify_method_names=True - Qualify method names with the name of the owning class
        - shorten_filenames=True - Shorten filenames where possible
        - color=None - Whether to use color output
        
        Installation
        ============
        
        Using pip::
        
        pip install xtraceback
        
        Nose plugin
        ===========
        
        The nose plugin is enabled with the `--with-xtraceback` flag. See `nose --help`
        for other options.
        
Keywords: traceback exception nose
Platform: UNKNOWN
