yachalk – terminal string styling done right

yachalk is a feature-complete clone of the Chalk (JavaScript) library.

Chalk comes with an easy to use composable API where you just chain and nest the styles you want.

This is free and open source software.

Key Features

  • Fluent, auto-complete-friendly API for maximum coding efficiency.
  • Ability to nest styles.
  • Proper handling of styling edge cases (same test cases as Chalk).
  • Auto-detection of terminal color capabilities.
  • 256/Truecolor color support, with fallback to basic colors depending on capabilities.
  • Same conventions as Chalk to manually control color modes via FORCE_COLOR.
  • No dependencies.
  • Fully typed (mypy strict), no stubs required.

Website: github.com/bluenote10/yachalk
Support:
Developer: Fabian Keller (Sindre Sorhus is the developer of Chalk)
License: MIT License

Terminal styling

yachalk is written in Python. Learn Python with our recommended free books and free tutorials.


Related Software

Terminal String Styling Tools
RichPython library for rich text and beautiful formatting
ChalkBills itself as “Terminal string styling done right”
picocolorsTiny and fast library for terminal output formatting
yoctocolorsSmall and fast command-line coloring package
yachalkClone of Chalk written in Python
kleurNode.js library for formatting terminal text with ANSI colors
coloretteSet your terminal text color and styles
styString styling for your terminal
termcolorANSI color formatting for output in the terminal
coloredSimple Python library for color and formatting in terminal
ansicolorsANSI colors for Python
ansi-colorsAdd ANSI colors to terminal text

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted