Cross-platform python library, smart printer for console applications.
smartprinter - Cross-platform python library, smart printer for console applications.
Has several different objects for displaying to the console or generating a string:
- Normal output.
- Output with the ability to change the line color .
- Displaying a message inside the pager, with the ability to scroll up and down, exit the pager, and print the message after being shown in a pager.
- output with the ability to print a message in the center of the console, regardless of changes in its width, indented before and after the message, indented with the specified characters.
By using this software, you agree to the full disclaimer terms.
Summary: Software provided "AS IS" without warranty. You assume all risks.
Full legal disclaimer: See DISCLAIMER.md
pip install -r requirements.txt- for tests:
pip install requirements/requirements-dev.txt - for test coverage:
pytest --cov --cov-report=html
pip3 install smartprinter
from smartprinter.printers import Printer, PrintersFactory
printer = Printer()
printer.base.echo('Text')
printer.click.echo('Text', show=True, color='green')
printer.smart.echo('Text', show=True, char='*')
printer.pager.echo('Text', show=True)
def_printer = PrintersFactory.get_base()
click_printer = PrintersFactory.get_click()
smart_printer = PrintersFactory.get_smart()
pager = PrintersFactory.get_pager()or
from smartprinter.printers import Printer
printer = Printer()
Printer.base.echo('Text')
Printer.click.echo('Text', show=True, color='green')
Printer.smart.echo('Text', show=True, char='*')
Printer.pager.echo('Text', show=True)Copyright (©) 2026, Alexander Suvorov
