Skip to main content

Styles terminal text

Project description

YATTS - Yet Another Terminal Text Styler

PyPI PyPI - Downloads GitHub

Styles terminal text

Install

pip install yatts

Examples

from yatts import style

# 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', ['yellow', '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.4.tar.gz (33.4 kB view hashes)

Uploaded Source

Built Distribution

yatts-0.0.4-py3-none-any.whl (3.2 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