$npx skillfedfor your agent

strip-ansi

Strip ANSI escape sequences from a string

With conditionsPyPI Text ProcessingReleased Jun 2020176.5K downloads / moPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — strip_ansi-0.1.1-py3-none-any.whl
v0.1.1 · released 2020-06-20 · Python >=3.6,<4.0

Yes, if you need to strip ANSI codes from strings and accept dormant maintenance. The package is simple, dependency-free, and has no known vulnerabilities. However, verify the license before use, and be aware that no updates have been released since June 2020—if future Python versions introduce breaking changes to string handling or ANSI standards, this package may not adapt.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.6 or later; author notes uncertainty about compatibility with Python 2 or versions below 3.6.
  • Low install friction; no runtime dependencies.
  • Maintenance is dormant—last release June 2020, no updates since, though the repository remains active with a recent commit in December 2024.

License · maintenance · safety

(unclear) — License status is unclear; the package metadata contains no SPDX identifier or raw license text. Verify the actual license before using in proprietary or copyleft-sensitive contexts.

last release 2020-06-20 (2246 days) · last repo commit 2024-12-04 · 10 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 176,460 downloads/mo, #10,241 on PyPI

Verify before relying

pip install strip_ansi

from strip_ansi import strip_ansi
result = strip_ansi("\033[38mLorem ipsum\033[0m")
print(result)  # Output: Lorem ipsum
  • Whether the package is actively maintained or if dormancy signals abandonment risk for future Python versions.
  • Actual license terms—metadata does not declare one, so check the repository directly.
  • Whether ANSI stripping handles all modern terminal escape sequences or only a subset.
Same gist for agents: .md · .json

What it is and what it does

strip-ansi is a minimal utility that removes ANSI escape sequences—the control codes terminals use for colors, bold, underline, and other text formatting—from strings. It takes a string containing these codes and returns the plain text content. The package has no runtime dependencies and installs quickly.

It is typically used when you need to log, store, or process terminal output that includes color codes but you want only the readable text. Common scenarios include cleaning up colored CLI output for storage in files, parsing terminal logs, or preparing text for analysis where formatting codes would interfere.

Use it for

  • Strip color codes from CLI tool output before writing to a log file or database.
  • Clean up terminal output captured from colored command-line utilities for text processing.
  • Prepare colored terminal text for analysis or comparison where ANSI codes would cause false mismatches.
  • Remove formatting codes from captured pytest or test runner output for plain-text reporting.
  • Sanitize colored output from third-party CLI tools before displaying in a non-terminal context.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to strip ANSI codes from strings and accept dormant maintenance.

The package is simple, dependency-free, and has no known vulnerabilities. However, verify the license before use, and be aware that no updates have been released since June 2020—if future Python versions introduce breaking changes to string handling or ANSI standards, this package may not adapt.

Install

strip-ansi on PyPI

Before you install

Low install friction; no runtime dependencies. Maintenance is dormant—last release June 2020, no updates since, though the repository remains active with a recent commit in December 2024.

Requires Python 3.6 or later; author notes uncertainty about compatibility with Python 2 or versions below 3.6.

License in practice

License status is unclear; the package metadata contains no SPDX identifier or raw license text. Verify the actual license before using in proprietary or copyleft-sensitive contexts.

Quickstart

pip install strip_ansi

from strip_ansi import strip_ansi
result = strip_ansi("\033[38mLorem ipsum\033[0m")
print(result)  # Output: Lorem ipsum

Verify before relying

  • Whether the package is actively maintained or if dormancy signals abandonment risk for future Python versions.
  • Actual license terms—metadata does not declare one, so check the repository directly.
  • Whether ANSI stripping handles all modern terminal escape sequences or only a subset.

Package facts

LicenseNot declared unclear
Python supportSupports the current Python release >=3.6,<4.0
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceDormant 2,246 days since the last release
Last repo commit
First released
Downloads176,460 / month, #10,241 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Programming Language :: Python :: 3Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8

Evidence: strip_ansi-0.1.1-py3-none-any.whl

Tags

Capabilities
strip ansi escape codesremove terminal color codesclean ansi sequencesansi string sanitizerterminal output cleanupansi escape removalplain text from colored output
Topics
ansi-escape-codesterminal-outputtext-cleaning

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 › “strip ansi escape codes”

  • strip-ansiRemoves ANSI escape sequences (color codes, formatting directives)…
  • ansi2txtConverts ANSI escape sequences (color codes, formatting) from text to…
  • 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 Text Processing packages

regex Worth it
PyPI · Python Modules · released Jul 2026

A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.

Apache-2.0 AND CNRI-Pythoncompiled wheel · 3.10+
437.7Mdownloads / mo
pyparsing Worth it
PyPI · Text Processing · released Jan 2026

pyparsing provides a library for building text parsers directly in Python code using composable grammar classes, handling quoted strings, whitespace variation, and embedded comments without regex or lex/yacc.

Install it if you need to parse text or define grammars programmatically.

MITpure Python · 3.9+
412.7Mdownloads / mo
fonttools Worth it
PyPI · Text Processing · released May 2026

fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.

Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.

permissive licensepure Python · 3.10+
235.9Mdownloads / mo
docutils With conditions
PyPI · Software Development · released May 2026

Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.

BSD-3-Clausepure Python · 3.9+
225.6Mdownloads / mo
RapidFuzz Worth it
PyPI · Text Processing · released Apr 2026

RapidFuzz provides fast fuzzy string matching using Levenshtein Distance and related metrics, implemented mostly in C++ with Python bindings for rapid similarity scoring and approximate string matching.

Install it if you need fuzzy string matching; it's a solid replacement for FuzzyWuzzy with better licensing and performance.

MITcompiled wheel · 3.10+
184.2Mdownloads / mo
tinycss2 Worth it
PyPI · Text Processing · released Nov 2025

tinycss2 parses CSS strings into token and block objects, and generates CSS strings from those objects, following the CSS Syntax Level 3 specification without enforcing specific properties or values.

Install it if your project requires CSS tokenization or syntax manipulation.

BSD-3-Clausepure Python · 3.10+
113.2Mdownloads / mo

See also ansi2html · ansi2txt · ansi · colorama · ansiwrap · pansi · colored · strip-hints · demoji · pretty-errors