Skip to main content

A simple Python module for adding colors to text in the terminal

Project description

Terminal-Colorify Terminal-Colorify lets you add colors, backgrounds, gradients, rainbows, and animated effects to your Python terminal apps!

Features Text color & background color

Bold, underline, blinking effects

Custom RGB colors

Rainbow text

Gradient text

Flashing text (animation)

Save styled text to files

Progress bars

Prebuilt theme styles

Installation

pip install Terminal-Colorify

Basic Usage

from colors import Colors
# Basic colored text
print(Colors.set_color(color="red", text="Red Text!"))

# Colored text with background
print(Colors.set_color(color="yellow", bg="blue", text="Yellow on Blue!"))

# Using RGB
print(Colors.set_color(rgb=(123, 45, 67), text="Custom RGB Color!"))

# Bold and Underline
print(Colors.set_color(color="green", text="Bold Underlined!", bold=True, underline=True))

Advanced Features

# Rainbow text
print(Colors().rainbow_text("Rainbow magic "))

# Gradient text
print(Colors().gradient_text("Smooth Gradient!", start_color=(255, 0, 0), end_color=(0, 0, 255)))

# Flashing text
Colors().flashing_text("Warning!!!", color="red", flashes=5, speed=0.5)

# Save colorful text to a file
Colors().save_styled_text(
    text="Saved colorful text!",
    filename="output.txt",
    color="cyan",
    bg="black",
    bold=True
)

# Progress bar
Colors().progress_bar(total=50)

# Themes (prebuilt styles)
print(Colors().theme("warning", "Caution Ahead!"))

Available Themes: warning ג€” Yellow text with red background

info ג€” Cyan text

success ג€” Green bold text

error ג€” Red bold underline text

neutral ג€” White text, gray background

Color Names Available: red

green

blue

yellow

magenta

cyan

white

black

gray

(plus any RGB you want!)

Perfect for CLI apps, games, fun terminals, and cool dev tools. Let your text shine like never before !

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

Terminal-Colorify-1.0.2.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Terminal_Colorify-1.0.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file Terminal-Colorify-1.0.2.tar.gz.

File metadata

  • Download URL: Terminal-Colorify-1.0.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for Terminal-Colorify-1.0.2.tar.gz
Algorithm Hash digest
SHA256 ff7362294d07352a7174360166e23708a974101ee5b826457d35ef8580e1e2a5
MD5 93d5d3dde241ce10799de64c50d9f864
BLAKE2b-256 d0600d143fa96f91fb2065cc3d7825ce868df66085bcfc79476fdbd643ddde36

See more details on using hashes here.

File details

Details for the file Terminal_Colorify-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for Terminal_Colorify-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b163fecfb136862dc4d87efed2dc18c6ef6ca53ad9e308da3da0e8f4261b7e03
MD5 d27ece088a68ef1232c6fe2e41f39f9c
BLAKE2b-256 d6c214ada5c51a069a8049762d2063c2ec9f577ae2f48e79447a644452321660

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page