coloredlogs
Colored terminal output for Python's logging module
Install
coloredlogs on PyPI
pip
pip install coloredlogsuv
uv add coloredlogspoetry
poetry add coloredlogsPackage facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — humanfriendly |
| Maintenance | abandoned — 1,889 days since the last release |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: coloredlogs-15.0.1-py2.py3-none-any.whl
About coloredlogs
from the package's own PyPI description — quoted content, verbatim
coloredlogs: Colored terminal output for Python's logging module
.. image:: https://travis-ci.org/xolox/python-coloredlogs.svg?branch=master :target: https://travis-ci.org/xolox/python-coloredlogs
.. image:: https://coveralls.io/repos/github/xolox/python-coloredlogs/badge.svg?branch=master :target: https://coveralls.io/github/xolox/python-coloredlogs?branch=master
The coloredlogs package enables colored terminal output for Python's logging_
module. The ColoredFormatter_ class inherits from logging.Formatter and uses
ANSI escape sequences to render your logging messages in color. It uses only
standard colors so it should work on any UNIX terminal. It's currently tested
on Python 2.7, 3.5+ and PyPy (2 and 3). On Windows coloredlogs automatically
tries to enable native ANSI support (on up-to-date Windows 10 installations)
and falls back on using colorama_ (if installed). Here is a screen shot of the
demo that is printed when the command coloredlogs --demo is executed:
.. image:: https://coloredlogs.readthedocs.io/en/latest/_images/defaults.png
Note that the screenshot above includes custom...
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Adds colored output to Python's standard logging module using ANSI escape sequences, with automatic fallback support for Windows terminals.
Installation is straightforward with low friction—a pure Python wheel with a single runtime dependency (humanfriendly). However, the package is abandoned as of 1889 days since its last release, meaning no active maintenance or security updates.
MIT license (permissive) places no restrictions on use, modification, or distribution in commercial or private projects.
Usage
pip install coloredlogs
import coloredlogs, logging
logger = logging.getLogger(__name__)
coloredlogs.install(level='DEBUG', logger=logger)
logger.info('colored output')
Requires Python 2.7 or 3.5+; on Windows, native ANSI support requires Windows 10 or the optional colorama package.
Verdict: A stable, well-established logging formatter with no known vulnerabilities and permissive licensing, but abandoned maintenance since June 2021 means no fixes for future Python versions or emerging issues. Suitable for projects that can tolerate a frozen dependency; risky for long-term production use.
Needs verification
- Whether the package remains functional with Python 3.9+ given its abandoned status and last release date.
- Real-world compatibility with recent Windows 10/11 ANSI terminal support without colorama installed.
- Whether humanfriendly dependency itself is actively maintained and compatible with current Python versions.
Similar packages
permissive · top 1,000 on PyPI
coloramapermissive · top 100 on PyPI
Pygmentspermissive · top 100 on PyPI
colorlogpermissive · top 1,000 on PyPI
termcolorpermissive · top 1,000 on PyPI
rich-argparsepermissive · top 1,000 on PyPI
APSchedulerpermissive · top 1,000 on PyPI
wcwidthpermissive · top 1,000 on PyPI
cron-descriptorpermissive · top 1,000 on PyPI
croniterpermissive · top 1,000 on PyPI