skillfed

termcolor

ANSI color formatting for output in terminal

termcolor Permissive license MIT Active 326 v3.3.0 released

Install

termcolor on PyPI

pip

pip install termcolor

uv

uv add termcolor

poetry

poetry add termcolor

Package 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

Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: TerminalsTyping :: Typed

About termcolor

from the package's own PyPI description — quoted content, verbatim

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.
terminal color outputANSI color formattingcolored console textterminal text stylingprint colored outputterminal formatting libraryANSI escape codes

Similar packages