smarttextdecorator

A cross-platform 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.

v1.0.0 Python 3.8+

Quick Install via pip
pip install smarttextdecorator

Description

Smart Text Decorator v1.0.0

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


PyPI Downloads
GitHub top language
PyPI - Downloads
GitHub release (latest by date)
GitHub
PyPI
PyPI - Format
GitHub Repo stars
GitHub watchers
GitHub forks


⚠️ Disclaimer

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


Help

  • pip install smarttextdecorator
from smarttextdecorator import SmartPrinter

SmartPrinter.print_framed(symbol='-')
SmartPrinter.print_center(text='Smart Legion Lab')

Example

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()

logo


License

BSD 3-Clause License

Copyright (©) 2026, Alexander Suvorov