textwrap, but savvy to ANSI colors and styles
conda install esri::ansiwrap
ansiwrap wraps text, like the standard textwrap module. But it also correctly wraps text that contains ANSI control sequences that colorize or style text.