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.
pip install coloredVerified import paths — ran on the pinned version, not inferred.
The quickstart demonstrates basic foreground, background, and RGB color usage with f-strings, emphasizing the importance of `Style.reset` to revert terminal formatting.
Append `{Style.reset}` to your formatted strings or explicitly call `print(Style.reset)`.Test your application on target terminal environments. For maximum compatibility, stick to basic 8/16 ANSI colors if advanced features are not critical or cannot be guaranteed.
Ensure `colored` is updated to a version that supports RGB for `Fore.rgb()` and `Back.rgb()` functionality. The current version (2.3.2) supports RGB.
Install the library using pip: `pip install colored`
Ensure that any string manipulation methods are called with parentheses to return the string value: `col = fg(color.upper())`
Remove the parentheses when using direct color attributes: `print(f'{Fore.red}Hello{Style.reset}')`No dependency data recorded yet.