Skip to main content

No project description provided

Project description

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

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

printWithStyle-0.0.2.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

printWithStyle-0.0.2-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

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