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
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()
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4288383bfbd6125fc0b4e05e8bb310ba0e0591aa71f7cd66251fe6beffa4898 |
|
MD5 | 568ae232fafbe1cfa41d597c373afb1c |
|
BLAKE2b-256 | 49ab4049975d8fc6656d11b34b95ecc2c6fc1c1673c3d818130646edd18f1ed4 |
File details
Details for the file smarttextdecorator-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: smarttextdecorator-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f58cfac27469f409ab33fb6cf6dc6a4c1cbecd1e1876a54f6a192c8337fc7912 |
|
MD5 | 37444b3f271ebd554eb38205904cd9cd |
|
BLAKE2b-256 | 83256147aabe7f03c0d5ba023765b0a204422c74177294be2340b04ae0689757 |