tolor π¨
A Python package to easily print colorful and gradient-rich text in the terminal.
π§ What My Project Does
tolor is a lightweight Python package that helps you print colored and gradient text easily in your terminal.
β
Predefined colors like red, blue, green, purple, pink, brown, etc.
β
Custom color support with HEX, RGB, HSL
β
Smooth per-character color gradients
β
Cross-platform support (Windows, Linux, macOS)
Example:
from tolor import init, color, gradient
init()
print(f"{color.red}This is red text{color.reset}")
print(f"{color.hex('#06E978')}Custom HEX color text{color.reset}")
print(f"{gradient(color.purple, color.blue)}This is gradient text!{color.reset}")
print(gradient("#FF0000", "#06E978", "Gradient text with hex!"))
π― Target Audience
tolor is designed for:
- Developers building CLI tools
- Students or educators making visually engaging scripts
- Terminal-based UI or dashboards
- Anyone who wants to make Python output more fun!
βοΈ Comparison
Other libraries like colorama, termcolor, and rich are great, but:
-
tolorfocuses on minimalism and ease of use - Built-in support for full color systems (HEX, RGB, HSL)
-
gradient()feature applies color per-character β no manual styling needed
π Links
π¦ PyPI: https://pypi.org/project/tolor/
π GitHub: https://github.com/TiraTitan/tolor
π· Screenshot: https://imgur.com/a/oecp1gm
Feel free to star β the project or open an issue if you have ideas, bugs, or feedback!
Top comments (0)