Skip to content

wiktorlaskowski/Minitrace-Python-Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages