Registry / serialization / colored

colored

JSON →
library2.3.2pypypi✓ verified 35d ago

Colored is a simple Python library (current version 2.3.2) for adding color and formatting to terminal output. It provides a collection of color codes and names, supporting 256-color terminal setups and modern RGB color modes. It maintains an active development status with regular updates, having released version 2.3.2 on March 28, 2026.

serializationdevops
Install & Compatibility
Where this runs
tested against v2.3.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.925 runs
installs and imports cleanly · install 0.0s · import 0.026s · 17.9MB
glibc
py 3.103.925 runs
installs and imports cleanly · install 1.5s · import 0.022s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

from colored import Fore
from colored import Back
from colored import Style

The quickstart demonstrates basic foreground, background, and RGB color usage with f-strings, emphasizing the importance of `Style.reset` to revert terminal formatting.

from colored import Fore, Back, Style print(f'{Fore.white}{Back.green}Colored is Awesome!!!{Style.reset}') print(f'{Fore.rgb(255, 100, 50)}This is a true color text.{Style.reset}')
Debug
Known footguns
gotchaAlways remember to apply `Style.reset` after using any colors or formatting. Failing to do so can leave your terminal in a permanently colored or formatted state, affecting subsequent output.
gotchaWhile `colored` supports 256-color and RGB (true color) modes, not all terminal emulators fully support these advanced features. Older or simpler terminals might only display 8/16 ANSI colors or render escape sequences as plain text.
deprecatedThe syntax and API have remained relatively stable. Major breaking changes are not widely documented for recent versions. However, `colored` introduced RGB color support in recent versions. Code relying on this feature will not work with older `colored` versions that predate RGB support.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
16 hits · last 30 days
bytedance
6
gptbot
4
ahrefsbot
4
script
1
bingbot
1
Resources