$npx skillfedfor your agent

ansi2txt

ansi to plain text converter

With conditionsPyPI UtilitiesReleased Feb 2023364.0K downloads / moPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — ansi2txt-0.2.0-py3-none-any.whl
v0.2.0 · released 2023-02-23 · Python >=3.7,<4.0

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.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python >=3.7,<4.0 per package metadata
  • 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 · maintenance · safety

(unclear) — 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.

last release 2023-02-23 (1268 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 363,989 downloads/mo, #7,212 on PyPI

Verify before relying

pip install ansi2txt

import ansi2txt
# Convert ANSI-coded string to plain text
plain = ansi2txt.convert(colored_string)
  • 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
Same gist for agents: .md · .json

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 on this page. Verify before relying on it.

With conditions

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

ansi2txt on PyPI

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.

Requires Python >=3.7,<4.0 per package metadata

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)

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

LicenseNot declared unclear
Python supportSupports the current Python release >=3.7,<4.0
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAbandoned 1,268 days since the last release
First released
Downloads363,989 / month, #7,212 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: ConsoleLicense :: OSI Approved :: GNU Affero General Public License v3License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: TerminalsTopic :: Text ProcessingTopic :: Text Processing :: FiltersTopic :: Utilities

Evidence: ansi2txt-0.2.0-py3-none-any.whl

Tags

Capabilities
strip ansi codesremove color codes textansi escape sequence removalplain text from colored outputterminal color strippingansi to plain text
Topics
ansi-escape-sequencestext-processing

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “remove color codes text”

  • ansi2txtConverts ANSI escape sequences (color codes, formatting) from text to…
  • strip-ansiRemoves ANSI escape sequences (color codes, formatting directives)…
  • ansiwrapWraps and formats text while correctly handling ANSI color and style…

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also ansi2html · strip-ansi · strip-hints · ansi · colorama · colored · style · climage · pansi · jaraco.text