{"id":2894,"library":"colored","title":"colored","description":"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.","status":"active","version":"2.3.2","language":"en","source_language":"en","source_url":"https://gitlab.com/dslackw/colored","tags":["xterm","color","colour","vt100","ansi","terminal","text","rgb","linux","windows"],"install":[{"cmd":"pip install colored","lang":"bash","label":"Install stable version"}],"dependencies":[],"imports":[{"symbol":"Fore","correct":"from colored import Fore"},{"symbol":"Back","correct":"from colored import Back"},{"symbol":"Style","correct":"from colored import Style"}],"quickstart":{"code":"from colored import Fore, Back, Style\n\nprint(f'{Fore.white}{Back.green}Colored is Awesome!!!{Style.reset}')\nprint(f'{Fore.rgb(255, 100, 50)}This is a true color text.{Style.reset}')","lang":"python","description":"The quickstart demonstrates basic foreground, background, and RGB color usage with f-strings, emphasizing the importance of `Style.reset` to revert terminal formatting."},"warnings":[{"fix":"Append `{Style.reset}` to your formatted strings or explicitly call `print(Style.reset)`.","message":"Always 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.","severity":"gotcha","affected_versions":"All versions"},{"fix":"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.","message":"While `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.","severity":"gotcha","affected_versions":"All versions, depends on terminal capabilities"},{"fix":"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.","message":"The 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.","severity":"deprecated","affected_versions":"<= 2.x.x (exact version for RGB introduction not specified, but newer versions explicitly mention it)"}],"env_vars":null,"last_verified":"2026-04-11T00:00:00.000Z","next_check":"2026-07-10T00:00:00.000Z"}