I'm a PCB Layout Engineneer (mainly focusing on hardware professinoally) but interesed is software so I've been learning python for fun.
Take a look at rich-gradient
and see if you like it. It's a library built on rich and pydantic-extra-types's Color class, that allows the printing of gradient text to the console.