Smart text decorator. A library for decorating strings and displaying them beautifully in the console.
- Generates and displays lines to the full width of the console with the specified text and a placeholder character.
- Generates and displays a line with the specified text, decorated at the top and bottom with filler characters along the length of the line.
Use for beautiful design of console applications.
Author and developer: Alexander Suvorov
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 smarttextdecorator
from smarttextdecorator import SmartPrinter
SmartPrinter.print_framed(symbol='-')
SmartPrinter.print_center(text='Smart Legion Lab')from smarttextdecorator import SmartPrinter
def main():
SmartPrinter.show_head(text='Smart Legion Lab')
print()
SmartPrinter.print_framed(text='Hello World!!!')
print()
SmartPrinter.show_footer(url='https://github.com/smartlegionlab/', copyright_='Copyright © 2024, Alexander Suvorov. All rights reserved.')
if __name__ == '__main__':
main()Copyright (©) 2026, Alexander Suvorov
