Sourcecode on GitHub Sourcecode License GitHub tag (latest SemVer incl. pre-release) GitHub release (latest SemVer incl. including pre-releases GitHub release date Dependents (via libraries.io)
GitHub Workflow - Build and Test Status Codacy - Quality Codacy - Line Coverage Codecov - Branch Coverage Libraries.io SourceRank
PyPI - Tag PyPI - Python Version PyPI - Status Libraries.io status for latest release
Documentation License Documentation - Read Now!

pyTooling.TerminalUI Documentation

A set of helpers to implement a text user interface (TUI) in a terminal.

Introduction

This package offers a pyTooling.TerminalUI.LineTerminal implementation, derived from a basic pyTooling.TerminalUI.Terminal class. It eases the creation of simple terminal/console applications. It includes colored outputs based on

List of meta classes

Example

from pyTooling.TerminalUI import LineTerminal

class Application(LineTerminal):
  def __init__(self):
    super().__init__(verbose=True, debug=True, quiet=False)

  def run(self):
    self.WriteQuiet("This is a quiet message.")
    self.WriteNormal("This is a normal message.")
    self.WriteInfo("This is a info message.")
    self.WriteDebug("This is a debug message.")
    self.WriteWarning("This is a warning message.")
    self.WriteError("This is an error message.")
    self.WriteFatal("This is a fatal message.")

# entry point
if __name__ == "__main__":
  Application.versionCheck((3,6,0))
  app = Application()
  app.run()
  app.exit()

Contributors

License

This Python package (source code) is licensed under Apache License 2.0.
The accompanying documentation is licensed under Creative Commons - Attribution 4.0 (CC-BY 4.0).


This document was generated on Oct 05, 2022 - 22:20.