termcolor
ANSI color formatting for output in terminal
Install
termcolor on PyPI
pip
pip install termcoloruv
uv add termcolorpoetry
poetry add termcolorPackage facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 227 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: termcolor-3.3.0-py3-none-any.whl
Keywords: ANSI, ANSI color, ANSI colour, color, colour, formatting, termcolor, terminal
About termcolor
from the package's own PyPI description — quoted content, verbatim
termcolor
PyPI version (image) Supported Python versions (image) PyPI downloads (image) GitHub Actions status (image) Codecov (image) Licence (image) Code style: Black (image) Tidelift (image)
Installation
From PyPI
python3 -m pip install --upgrade termcolor
From source
```bash git clone...
Read as markdown · JSON record · Source repository · Homepage
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
termcolor adds ANSI color and formatting to terminal output, supporting foreground colors, background highlights, and text attributes like bold and underline across different terminal types.
Low friction: pure Python wheel with zero runtime dependencies. Actively maintained with latest release on 2025-12-29.
MIT license permits commercial and private use with minimal restrictions; you must include the license text in distributions.
Usage
pip install termcolor
from termcolor import colored, cprint
text = colored("Hello, World!", "red", attrs=["bold"])
print(text)
cprint("Colored output", "green", "on_red")
Requires Python 3.10 or later.
Verdict: termcolor is a stable, lightweight, dependency-free library for terminal color output with active maintenance, no known vulnerabilities, and permissive MIT licensing. It is suitable for any project needing cross-terminal ANSI color support.
Needs verification
- Whether terminal color output degrades gracefully on Windows or other platforms with limited ANSI support beyond what the fact sheet documents.
Similar packages
permissive · top 1,000 on PyPI
coloramapermissive · top 100 on PyPI
colorlogpermissive · top 1,000 on PyPI
wcwidthpermissive · top 1,000 on PyPI
coloredlogspermissive · top 1,000 on PyPI
richpermissive · top 100 on PyPI
humanfriendlypermissive · top 1,000 on PyPI
coveragepermissive · top 1,000 on PyPI
importlib-metadatapermissive · top 100 on PyPI
importlib-resourcespermissive · top 1,000 on PyPI