

tranci is a no-dependencies, lightweight, easy-to-use, Pythonic ANSI library. It officially supports Python 3.9-3.13. You can move the cursor around, do some colors. Idk, just general ANSI.
Install the tranci package with pip. Run python -m tranci to confirm it works.
Example code:
import tranci
print(tranci.Red("Red text"))
print(tranci.BGRed("Red background"))
print(tranci.RGB(164, 106, 120, "RGB code"))
print(tranci.HEX("#A44A44", "HEX code"))
weird_cyan_green_color_thing = tranci.HEX(0x3affad)
print(weird_cyan_green_color_thing("You can save them too"))You can figure out everything else just by looking at your IDE's autocomplete! (or just look at the cool tranci/__main__.py source code)
tranci has everything [that one clone of a JS library that shall not be named] has except fallbacks.tranci isn't just colors and styles and oooo look at this bold italic striked underlined red text!!!. It also supports a bit more general ANSI, in a more Pythonic extendable syntax. You can add your own ANSI things to tranci with the class system. Plus the world won't end if your project is 51.82KiB larger than it could be.