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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Terminal-Colorify-1.0.0.tar.gz.
File metadata
- Download URL: Terminal-Colorify-1.0.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
030e76233487267c19b177264148cb63d9a85967cec48f4daca2311cdc520d99
|
|
| MD5 |
20fa3226cb035075f93812539ab03be5
|
|
| BLAKE2b-256 |
ce2e187b0597a0a27f7ef407cac49a2697d53cce5e668c893e9676cdd1216604
|
File details
Details for the file Terminal_Colorify-1.0.0-py3-none-any.whl.
File metadata
- Download URL: Terminal_Colorify-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dfd5ad922bdd78475eae385fe1cbf8dd1651d024faf812d9bec53ecf108a2fa
|
|
| MD5 |
44cf60deb2431b1609ae48be1abc71aa
|
|
| BLAKE2b-256 |
79b6f195039e1405abfc32946cf28a8e8be5e8756eb4dcd1225dd83b25a4b737
|