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.1.tar.gz (4.5 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.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Terminal-Colorify-1.0.1.tar.gz
  • Upload date:
  • Size: 4.5 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.1.tar.gz
Algorithm Hash digest
SHA256 0e602839c30a7dcec64a9d4b9129de5a8ce917be11697ffe1b63112e5f95ffe8
MD5 96a731ff550455a48ff748ae04f3293a
BLAKE2b-256 597f2dda72fd6cc474c50dcf1bb4eff79fe741978a0aa32d117f02d8597a55fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Terminal_Colorify-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 275dc3c877f3f1c641a990c206758090e0d1b414d54c82da86b7e949f6e6d774
MD5 e0963269fb768bbcb369bf95a7fe01bb
BLAKE2b-256 4d92b172e94653d3697a29e17c528f38c9faa3d64f81389a9c43d15f1eb78a19

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