{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/8"}],"enrichment":{"capability":"Ansimarkup converts XML-like markup tags into ANSI escape sequences for colored and styled terminal text output.","skillfed_tags":["terminal-ui","cli-formatting"],"use_cases":["Build CLI tools with colored help text, error messages, and status output using readable markup instead of escape codes.","Add colored logging output to Python applications via the included AnsiMarkupFormatter for the logging module.","Format terminal progress indicators, warnings, and alerts with different colors and styles for better visibility.","Create shell-like scripts in Python that need readable, maintainable colored text without managing raw escape sequences.","Align and format colored terminal tables or reports where the delta property helps account for escape sequence length."],"what_it_does":"Ansimarkup is a lightweight wrapper around colorama that lets you write colored and styled terminal output using simple XML-like tags instead of raw ANSI escape codes. You write markup like `<b><red>text</red></b>` and it converts to the corresponding terminal escape sequences. It supports foreground and background colors (named, xterm, hex, and RGB), text styles like bold and dim, nested tags, custom tag definitions, and a logging formatter for the standard library.\n\nThe package is designed for convenience with a focus on keeping processing minimal. It includes utilities like ansistring for proper text alignment when using formatted strings, a strip() method to remove markup, and a strict mode to catch mismatched tags. It also works from the command line and on Windows (with colorama initialization). The main limitation is that it does little validation of markup structure\u2014unbalanced nesting will produce incorrect output rather than raising an error.","worth_installing":"Yes, if you need readable colored terminal output without managing raw escape codes. The low install friction, permissive license, stable classifier, and zero known vulnerabilities make it a safe choice. The aging maintenance status (last commit 191 days ago) is not a blocker for a stable, focused utility, but verify that its known limitations around unbalanced nesting don't affect your use case."},"id":"ansimarkup","links":{"html":"https://skillfed.io/packages/ansimarkup","md":"https://skillfed.io/packages/ansimarkup.md","pypi":"https://pypi.org/project/ansimarkup/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2026-02-04","license_spdx":null,"license_treatment":"permissive","name":"ansimarkup","python_support":"supports_current","summary":"Produce colored terminal text with an xml-like markup"},"popularity":{"monthly_downloads":158660,"position":10714,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.2.0"}
