Supported Versions PyPi Status License Test Status Coverage Code Style: Black

Yet another terminal text coloring library…

Why? Because, I like certain things and I hate certain things about the currently available solutions. This here is my attempt to build an interface for simply applying ANSI escape sequences to strings that I enjoy and can update at my own free will. That is it, there is nothing new or interesting that this packages adds. Thanks 🎉

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
from chalky import bg, fg, hex, rgb, sty

# compose some styles together
print(fg.red & sty.bold | "Bold and red text")
print(bg.blue & fg.white & sty.italic | "White italic text on a blue background")

# store a style for later use
success_style = fg.green
print(success_style | "Success message")
print(success_style & sty.underline | "Underlined success message")

# build some true colors as well
print(rgb(255, 9, 255) | "Purply text")
print(hex("#ffdd00") & sty.bold | "Bold yellowy text")

To get started using this package, please see the Getting Started page!