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
- Maintenance status: The last recorded upstream push was 2024-08-28, and the most recent update listed is v0.2.0 from the same date, so as of 2026-06-09 the source appears quiet or in maintenance mode, not actively evolving.
- Update cadence: Updates are infrequent, with a gap of about 5 days between v0.1.3 (2024-08-13) and v0.2.0 (2024-08-28), but a much larger prior gap (to v0.1.2 in 2021), suggesting no regular release cadence.
AI summary generated
Recent updates
0.2.0
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.
BreakingFeatures0.1.3
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
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.