printWithStyle

Small library to style print().


License
MIT
Install
pip install printWithStyle==0.0.2

Documentation

printWithStyle

Style your print.

Module

printWithStyle(text, bold=False, italic=False, underline=False, foreground=None, background=None)

text: text to print
Has to be str or list[str] (if list[str] is used every element of the list in a line).

bold: style the text bold
Has to be bool.

italic: style the text italic
Has to be bool.

underline: style the text underline
Has to be bool.

foreground: foreground color
Has to be str. (possible values: "black", "red", "green", "yellow", "blue", "magenta", "cyan", "white")

background: background color
Has to be str. (possible values: "black", "red", "green", "yellow", "blue", "magenta", "cyan", "white")

Usage

from printWithStyle import *
printWithStyle(["Hello","World"], bold=True)

Output:
Hello
World