Skip to main content

You can use different foreground and background colors in terminal using ColorChalks module.

Project description

ColorChalks

🖌️Module for terminal string styling

PyPI version made-with-python PyPI license Downloads


Installation

pip install ColorChalks

Usage

from ColorChalks import ColorChalks

# Print "Hello World!" in yellow color.
print(ColorChalks.FCOLORS.Yellow + "Hello World!")

# Print "Hello World!" with green background color. 
# but first you have to reset

print(COLORS.Reset + BCOLORS.Green + "Hello World!")

## Print "Hello World!" with green background color with blue foreground color
print(COLORS.Reset + BCOLORS.Green + FCOLORS.Blue + "Hello World!")

Note: Version 1.0.3 comes with foreground colors (FCOLORS) and background colors (BCOLORS)


Colors

  • Black
  • Red
  • Green
  • Yellow
  • Blue
  • Magenta
  • Cyan
  • White
  • BrightBlack
  • BrightRed
  • BrightGreen
  • BrightYellow
  • BrightBlue
  • BrightMagenta
  • BrightCyan
  • BrightWhite

NOTE: Use the following command to reset to default color. Prefer to use this command before jumping from Bright colors to normal colors.

print(ColorChalks.COLORS.Reset) 

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

ColorChalks-1.0.3.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

ColorChalks-1.0.3-py3-none-any.whl (3.4 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