Skip to content

Latest commit

 

History

History
34 lines (32 loc) · 1.23 KB

File metadata and controls

34 lines (32 loc) · 1.23 KB

minitrace_light

Minitrace Python Library

Shorten those verbose Python tracebacks to something more compact, comes with saving!

Ever seen those long tracebacks? Well, this is for you!

REQUIREMENTS

  • Colorama colorcodes the line with the error.
  • Tkinter for the file dialogue, probably installed but best to check.

MAIN WEBSITE

Go to the website at https://wiktorlaskowski.github.io/Minitrace-Python-Library/

SETUP

  1. First import the library. DO NOT USE import minitrace USE from minitrace import MiniTrace
  2. Initialize the library using the init function MiniTrace.init()

Full script:

from minitrace import MiniTrace
MiniTrace.init()

HOW TO CUSTOMIZE

Use MiniTrace.settracelengthto() to set the length

Example:

MiniTrace.settracelengthto(10)

Use MiniTrace.set_show_full_path(True) to include file paths in the output.

Enable automatic saving of tracebacks:

MiniTrace.enable_auto_save("trace.log")

Disable with MiniTrace.disable_auto_save() when you are done.

NOTES:

Pip does not support minitrace, you will need to download the file from raw code to activate it.