SimpleColor - Add colors to your terminal output easily
Project description
SimpleColor
SimpleColor is a Python module for adding color to your terminal output easily.
Installation
You can install SimpleColor using pip. Simply run the following command:
pip install simplecolor
Usage
import simplecolor
# Colorize text with predefined colors
colored_text = simplecolor.colorize("Hello, World!", "red", "bg_black")
# Colorize text with custom hex colors
hex_colored_text = simplecolor.hex_colorize("Custom Color", "#FFA500", "bg_white")
# Clear the terminal screen
simplecolor.clear_terminal()
Or
import SimpleColor
# Colorize text with predefined colors but also automatically resets
colored_text = simplecolor.colorize("Hello, World!", "red", "bg_black", reset=True)
# Colorize text with custom hex colors but also automatically resets
hex_colored_text = simplecolor.hex_colorize("Custom Color", "#FFA500", "bg_white", reset=True)
# Clear the terminal screen
simplecolor.clear_terminal()
Predefined Colors
SimpleColor provides a variety of predefined colors, including:
-
reset
-
black
-
red
-
green
-
yellow
-
blue
-
purple
-
cyan
-
white
-
gray
-
light_red
-
light_green
-
light_yellow
-
light_blue
-
light_purple
-
light_cyan
-
pink
-
orange
-
teal
-
dark_gray
-
dark_red
-
dark_green
-
dark_yellow
-
dark_blue
-
dark_purple
-
dark_cyan
-
light_gray
-
bold_white
-
bg_black
-
bg_red
-
bg_green
-
bg_yellow
-
bg_blue
-
bg_purple
-
bg_cyan
-
bg_white
-
bg_light_gray
-
bg_dark_gray
-
bg_light_red
-
bg_light_green
-
bg_light_yellow
-
bg_light_blue
-
bg_light_purple
-
bg_light_cyan
-
bg_bold_white
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for simplecolor-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a754d6435d69de081e8fb7a4221591228b45c1e883012b6c2a0958d01cd7760 |
|
MD5 | 72b641b6141c64218c6822c9d8d25d19 |
|
BLAKE2b-256 | cbe63ab377d712f61b7957f325514e64f082ef888c6314710f5b5052e76a4af7 |