{"categories":[{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing/3"}],"enrichment":{"capability":"Removes ANSI escape sequences (color codes, formatting directives) from strings, leaving plain text.","skillfed_tags":["ansi-escape-codes","terminal-output","text-cleaning"],"use_cases":["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."],"what_it_does":"strip-ansi is a minimal utility that removes ANSI escape sequences\u2014the control codes terminals use for colors, bold, underline, and other text formatting\u2014from strings. It takes a string containing these codes and returns the plain text content. The package has no runtime dependencies and installs quickly.\n\nIt 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.","worth_installing":"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\u2014if future Python versions introduce breaking changes to string handling or ANSI standards, this package may not adapt."},"id":"strip-ansi","links":{"html":"https://skillfed.io/packages/strip-ansi","md":"https://skillfed.io/packages/strip-ansi.md","pypi":"https://pypi.org/project/strip-ansi/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2020-06-20","license_spdx":null,"license_treatment":"unclear","name":"strip-ansi","python_support":"supports_current","summary":"Strip ANSI escape sequences from a string"},"popularity":{"monthly_downloads":176460,"position":10241,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.1.1"}
