Skip to content

Python functions that output styialized input to the terminal

License

Notifications You must be signed in to change notification settings

Marseel-E/colors.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

colors.py

Python functions that output styialized input to the terminal

Some shells don't support colorized text, or follow diffrernt foramts.

This was tested on: fish, bash

how to use

All functions take 1 parameter text which is the desired text to be formatted, and return the same value which is the formatted string. Example:

from colors import red

if __name__ == '__main__':
  print(red("This is red text"))

available functions

these functions have 9 similar style functions that follow this format (color_style, ex: red_blinking).

Styles: bold, dim, italic, underlined, blinking, highlighted, invisible, linethrough

  • black
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan
  • white

About

Python functions that output styialized input to the terminal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages