Terminal string styling for python. Native port of chalk for nodejs
- Highly performant
- Expressive API
- Auto-detects color support
pip install nodechalk
import chalk
print chalk.red("Hello chalk")
- reset
- bold
- dim
- italic (not widely supported)
- underline
- inverse
- hidden
- strikethrough (not widely supported))
- black
- red
- green
- yellow
- blue (on Windows the bright version is used as normal blue is illegible)
- magenta
- cyan
- white
- gray
- bgBlack
- bgRed
- bgGreen
- bgYellow
- bgBlue
- bgMagenta
- bgCyan
- bgWhite