A small Colorama wrapper that improves syntax
For the module to work, you'll need to have colorama installed on your machine:
pip install colorama
Place colorize.py in your root project folder and then use the following statement to import it:
from colorize import colorize
colorize(string, color)
Available colors:
- black
- red
- green
- yellow
- blue
- magenta
- cyan
- white
- reset
colorize("Welcome!", "cyan")
- colorize() returns a string
- If the string argument isn't a string, colorize will automatically try to convert it to a string