scistag.logstag.console_stag.Console

class Console[source]

Bases: object

Helper class for logging data to the console

Methods

clear

Clears the console (if non-progressive)

print

Prints a new line

Attributes

__dict__

__doc__

__module__

__weakref__

list of weak references to the object (if defined)

progressive

Defines if the console is progressive, so should list new entries line by line w/o ever clearing the full terminal

clear()[source]

Clears the console (if non-progressive)

print(text, linebreak=None)[source]

Prints a new line

Parameters
  • text (str) – The text to be printed

  • linebreak (str | None) – The type of linebreak to use

progressive

Defines if the console is progressive, so should list new entries line by line w/o ever clearing the full terminal