Skip to main content

Styles terminal text

Project description

YATTS - Yet Another Terminal Text Styler

Styles terminal text

Examples

# Prints yatts with dark green text color
print(style("yatts", ['green', 'dark']))

# Prints yatts with red text color and dark yellow background
print(style("yatts", 'red', ['yello', 'dark']))

# Prints yatts with white text color, blue background and italic text style
print(style("yatts", bgcolor='blue', italic=True))

Function Arguments

def style(
  text,
  color='white',
  bgcolor=None,
  bold=False,
  italic=False,
  underline=False,
  striketrough=False
):

Color Palette

color palette

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

yatts-0.0.3.tar.gz (32.7 kB view hashes)

Uploaded Source

Built Distribution

yatts-0.0.3-py3-none-any.whl (3.0 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