Comparison
ansiwrap vs textwrap3
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
textwrap, but savvy to ANSI colors and styles
Low maintenance activity. Last release over 7 years ago, commits in 2 of the last 26 weeks. Weaker on commit activity and recent releases.
$
pip install ansiwraptextwrap from Python 3.6 backport (plus a few tweaks)
Likely abandoned. No release or commit for years (last release over 7 years ago). It brings a standard-library module to older Pythons: on current versions, use the built-in one.
$
pip install textwrap3In short
- textwrap3 looks abandoned: avoid it for new projects.
- ansiwrap is the most used: 422.4K downloads a month.
- ansiwrap also has the best Pythie’s Index (16).