Back to Explore

shawwn/supports-color-python

GitHub
1 watchersOpen source

Last release: 8/28/2024

Detects whether a terminal supports color output in Python, including how many colors are available for stdout or stderr (for example, 16m truecolor or 256 colors). This is useful for enabling or tailoring colored terminal formatting based on the user’s terminal capabilities.

Project status

  • Actively maintained as of 2024, with a recent update (0.2.0 on 2024-08-28) and another update shortly before it (0.1.3 on 2024-08-13).
  • Update cadence in the latest period looks fast (0.1.3 to 0.2.0 is about 15 days), but there is a much larger gap between 0.1.2 (2021-08-02) and the 2024 updates.

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • 0.2.0

    8/28/2024

    Release 0.2.0 updates the supports-color-python package to version 0.2.0 while removing the external dict dependency and re-implementing its small “edict” behavior internally. The code also adds additional environment and terminal detection logic (CI and TERM values) that changes the computed color support levels.

    BreakingFeatures
  • 0.1.3

    8/13/2024

    Release 0.1.3 updates packaging metadata (version bump) and adjusts the runtime color-detection logic. The release notes field is empty, so any behavioral changes in the code are effectively undocumented.

  • 0.1.2

    8/2/2021

    Release 0.1.2 was published on 2021-08-02, but no release notes were provided by the publisher. There is no stated information about new features, bug fixes, breaking changes, security, or dependencies in the supplied release data.