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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file printWithStyle-0.0.2.tar.gz.

File metadata

  • Download URL: printWithStyle-0.0.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for printWithStyle-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6fd9870c5341c563fae2237e2e1668068dc1f14f84fc6c5c3820a30ad474f466
MD5 7ff3ef522ab839681def4af8b4d84199
BLAKE2b-256 bcee1aa242c795c2f73e6b54bdc543b48bf9bc11cc14d54627ae61d3e18b7cd5

See more details on using hashes here.

File details

Details for the file printWithStyle-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: printWithStyle-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for printWithStyle-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f0751fe2243c843c09f253e1e48dab11b5f3f5c46f724c24386d8b07ded74f26
MD5 93ab3e8fd6be2fdac178d70ff9d29275
BLAKE2b-256 b262ae5e5d0cad96238335f84b00779e5ba1484c73a68f454fbff2f55ea2e44b

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