--- id: ansi2txt version: "0.2.0" license: unclear license_treatment: unclear maintenance: abandoned --- # ansi2txt — ansi to plain text converter License: unclear · Maintenance: abandoned · Downloads: 364.0K/mo ## What it is and what it does ansi2txt is a Python port of the original C-based ansi2txt utility that strips ANSI escape sequences from text. It takes input containing terminal color codes and formatting directives and outputs the same text with all styling removed, leaving only the plain content. This is useful when you need to process or store output from colored terminal applications without the escape sequences. The package has no external runtime dependencies and installs as a pure Python wheel. It was ported from a C codebase specifically to avoid compilation and binary distribution overhead. However, the project is no longer maintained—the last release was in February 2023 with no updates since. Use it for: - Strip color codes from log files before archiving or searching them - Clean up terminal output captured from colored CLI tools for plain-text processing - Convert colored build or test output to plain text for storage in databases or logs - Prepare colored command output for regex matching or text analysis - Remove ANSI sequences from captured terminal sessions for readability ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Converts ANSI escape sequences (color codes, formatting) from text to plain text output, removing all terminal styling. Yes, if you need straightforward ANSI-to-plain-text conversion and can tolerate an unmaintained package. The zero-dependency design and Production/Stable status make it low-risk for simple use cases. However, verify the dual-license terms apply to your project, and consider whether you need active maintenance or bug fixes for your use case. ## Install pip install ansi2txt uv add ansi2txt poetry add ansi2txt ## Installing ansi2txt Before you install: Low install friction with no runtime dependencies. Package is marked abandoned with no activity since its latest release, though it was declared Production/Stable. License in practice: Dual-licensed under AGPLv3 and MIT, but license_treatment is marked unclear in the metadata. Verify which license applies to your use case before integrating. Quickstart: pip install ansi2txt import ansi2txt # Convert ANSI-coded string to plain text plain = ansi2txt.convert(colored_string) Requires Python >=3.7,<4.0 per package metadata Verify before relying: - Whether the dual AGPLv3/MIT licensing is truly dual-choice or requires compliance with both - Whether the package handles all ANSI escape sequence types or only a subset - Current compatibility with Python versions beyond 3.11 despite requires_python allowing up to 4.0 ## Package facts - License: not declared (unclear) - Python support: supports_current - Install friction: low - Maintenance: abandoned - Downloads: 364.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags strip ansi codes, remove color codes text, ansi escape sequence removal, plain text from colored output, terminal color stripping, ansi to plain text, ansi-escape-sequences, text-processing [View on SkillFed](https://skillfed.io/packages/ansi2txt) · [View on PyPI](https://pypi.org/project/ansi2txt/)