Skip to main content

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.

Project description

Smart Text Decorator v0.1.3

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: A.A. Suvorov


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


What's new:

smarttextdecorator v0.1.3

WARNING! Not backward compatible with older versions.

  • Fix errors.
  • Code refactoring.

Help:

  • pip install smarttextdecorator
from smarttextdecorator import SmartPrinter

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

Exemple:

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, A.A. Suvorov. All rights reserved.')


if __name__ == '__main__':
    main()

logo


Disclaimer of liability:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Copyright:

--------------------------------------------------------
Licensed under the terms of the BSD 3-Clause License
(see LICENSE for details).
Copyright © 2024, A.A. Suvorov
All rights reserved.
--------------------------------------------------------

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smarttextdecorator-0.1.3.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smarttextdecorator-0.1.3-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file smarttextdecorator-0.1.3.tar.gz.

File metadata

  • Download URL: smarttextdecorator-0.1.3.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for smarttextdecorator-0.1.3.tar.gz
Algorithm Hash digest
SHA256 88ee6600103896d92991c988e822d35b5025ffd976b0181431d6dd4361ad0743
MD5 cb3e4449be11d0ea043e784656060973
BLAKE2b-256 fef5810ad87473fb7fe43f88627d5a3128ea7c2e3992863b5bbe08cf32763f39

See more details on using hashes here.

File details

Details for the file smarttextdecorator-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for smarttextdecorator-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 90d4e659725296742ff34be5f15ec7fade933155439a52156865569cfd5063e2
MD5 6e16cd11ea5fa3e5be2eeec2fe3b6565
BLAKE2b-256 627e4117a005007f532f1af292317da009d7d379c6fe075afb2763735b1b61d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page