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.2

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


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.7.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.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

smarttextdecorator-0.1.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for smarttextdecorator-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c4288383bfbd6125fc0b4e05e8bb310ba0e0591aa71f7cd66251fe6beffa4898
MD5 568ae232fafbe1cfa41d597c373afb1c
BLAKE2b-256 49ab4049975d8fc6656d11b34b95ecc2c6fc1c1673c3d818130646edd18f1ed4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for smarttextdecorator-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f58cfac27469f409ab33fb6cf6dc6a4c1cbecd1e1876a54f6a192c8337fc7912
MD5 37444b3f271ebd554eb38205904cd9cd
BLAKE2b-256 83256147aabe7f03c0d5ba023765b0a204422c74177294be2340b04ae0689757

See more details on using hashes here.

Supported by

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