{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/7"},{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing/2"},{"label":"Filters","url":"https://skillfed.io/packages/category/text-processing-filters"}],"enrichment":{"capability":"Backports Python 3.6's textwrap module to earlier Python versions, making APIs like shorten() and max_lines available across Python 2.6 and 3.x with improved Unicode handling.","skillfed_tags":["legacy-python","backport"],"use_cases":["Wrap and fill text in Python 2.7 codebases using the same API as Python 3.6's textwrap.","Handle Unicode text with accented characters and em-dashes correctly across Python 2 and early Python 3.","Use the shorten() function in projects locked to Python 2.6\u20133.5 where the standard library lacks it.","Maintain consistent text-wrapping behavior across a codebase that must support both Python 2 and Python 3."],"what_it_does":"textwrap3 is a backport of Python 3.6's textwrap module designed to run on older Python versions, from 2.6 forward. It exposes newer APIs like shorten() and the max_lines parameter to codebases stuck on Python 2 or early Python 3 releases. The module is a near-direct copy of the standard library implementation, with one notable tweak: it treats Unicode em-dashes (U+2014) the same as ASCII em-dashes (--) when wrapping text, and it applies the re.UNICODE flag so that accented and non-ASCII characters are recognized as legitimate word characters.\n\nBecause the package is a compatibility shim for end-of-life Python versions, it is only relevant if you maintain legacy code that cannot upgrade to modern Python. The package itself is abandoned\u2014no releases since January 2019\u2014and the Python versions it targets are no longer supported by the Python community.","worth_installing":"No. The package is abandoned (last release January 2019) and targets Python versions (2.6\u20133.7) that are end-of-life and no longer receive security updates. Modern Python projects should use the standard library textwrap directly. Only consider this if you are maintaining legacy code on unsupported Python versions and cannot upgrade\u2014in that case, the low install friction and permissive license make it technically viable, but the lack of maintenance is a significant risk."},"id":"textwrap3","links":{"html":"https://skillfed.io/packages/textwrap3","md":"https://skillfed.io/packages/textwrap3.md","pypi":"https://pypi.org/project/textwrap3/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2019-01-23","license_spdx":null,"license_treatment":"permissive","name":"textwrap3","python_support":"unspecified","summary":"textwrap from Python 3.6 backport (plus a few tweaks)"},"popularity":{"monthly_downloads":1313048,"position":4071,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.9.2"}
