Is your CLI output looking dull?
Time to Colorama-fy it! ๐
๐ก Why Use Colorama?
- โ Easy cross-platform terminal color support
- ๐ง Great for debugging, logging, and catching the eye
- ๐ง Simple syntax for styling output
๐ How to Use
from colorama import init, Fore, Style
init()
print(Fore.RED + Style.BRIGHT + "๐ฅ Error Detected!")
print(Fore.GREEN + "โ
Success!")
print(Fore.YELLOW + Style.DIM + "โ ๏ธ Warning: Proceed with Caution")
๐ฏ Key Features:
Fore.RED, Fore.GREEN, Fore.YELLOW, etc.
Style.BRIGHT, Style.DIM, Style.NORMAL
Back.COLORNAME for background colors
โก Tip: Use init(autoreset=True) to avoid manually resetting styles!
๐ฌ Whether you're making a CLI app, logger, or just want prettier outputs,
Colorama adds life to your terminal! ๐จ๐ฅ๏ธ
Top comments (0)