A simple tool enabling easy colouring of terminal outputs
pip install colour_splash
git clone https://github.com/lachlan2357/python-colour-splash into your project directory
Include import colour_splash at the top of your file
colour_splash.colour("this is red text with a white background", "red", "white") or colour_splash.colour("this is red text with a white background", colour_splash.colours.red, colour_splash.colours.white)
colour_splash.colour("this is text with a white background", background = "white") or colour_splash.colour("this is text with a white background", background = colour_splash.colours.white)
colour_splash.colour("this is dim text", "dim") or colour_splash.colour("this is dim text", colour_splash.styles.dim)
Changes the foreground, background or both-grounds of text
textthe text you wish to be colouredforeground(optional): the string/colours value of the name of the colour you wish to use as the foreground (text) colourbackground(optional): the string/colours value of the name of the colour you wish to use as the background (highlighted) colour
Changes the style of text
text: the text you wish to be styledstyle(optional): the string/styles value of the name of the style you wish to use
Starts a specific colour for all proceeding text
foreground(optional): the string/colours value of the name of the colour you wish to use as the foreground (text) colourbackground(optional): the string/colours value of the name of the colour you wish to use as the background (highlighted) colour
Starts a specific style for all proceeding text
style(optional): the string/styles value of the name of the style you wish to use
Returns the proceeding text to its previous colour/style
Returns the proceeding text to its previous colour/style
Lists colours and styles and how they appear on your system