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)