Skip to main content

Backlight color for command line interface!

Project description

Colors-cli

The colors-cli help you for backlight and formatting your cli text

Usage:

from colors_cli import Clrs

print(Clrs.green("Hello world!"))  # Output green text in cli

print(Clrs.blue("Hello world!"))  # Output blue text in cli

print(Clrs.warn("Warning!"))  # Output yellow color

print(Clrs.fail("Error!"))  # Output red color

print(Clrs.bold(Clrs.violet(Clrs.bckg("Hello world!"))))  # Output bold and violet with background text

Output

This image

All methods:

  • green(string) -> str - Return green string
  • blue(string) -> str - Return blue string
  • cyan(string) -> str - Return cyan string
  • warn(string) -> str - Return yellow string
  • fail(string) -> str - Return fail string
  • violet(string) -> str - Return violet string
  • bold(string) -> str - Return bold string
  • underline(string) -> str - Return underline string
  • bckg(string) -> str - Return string with background

All fields:

  • ENDC - For end color
  • RED
  • BLUE
  • CYAN
  • GREEN
  • VIOLET
  • YELLOW
  • BOLD
  • UNDERLINE
  • BACKGROUND

Enjoy using! :)

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

colors_cli-1.23.tar.gz (1.9 kB view hashes)

Uploaded Source

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