types-termcolor
Typing stubs for termcolor
What it is and what it does
types-termcolor is a PEP 561 type stub package that provides type information for the termcolor package. It allows type-checking tools like mypy, pyright, pytype, and PyCharm to understand and validate code that uses termcolor, catching type errors at check time rather than runtime.
The package is maintained as part of the typeshed project and has been inactive since 2023-03-28. The description notes that termcolor has included type annotations or type stubs since version 2.0.0, making this stub package redundant for users of current termcolor releases. Installation is only necessary if you are locked to termcolor versions before 2.0.0 and need type checking support.
Use it for:
- Type-checking legacy projects that depend on termcolor versions before 2.0.0
- Enabling mypy or pyright validation in codebases using older termcolor versions
- Providing IDE type hints in PyCharm for pre-2.0.0 termcolor calls
- Migrating a codebase to strict type checking when termcolor upgrade is not immediately possible
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for the termcolor package, enabling static type checkers like mypy and pyright to validate code that uses termcolor.
No, unless you are constrained to termcolor versions before 2.0.0. The package has not been updated since 2023-03-28 and is now obsolete for termcolor 2.0.0 and newer, which include their own type annotations. If you are using a current termcolor release, skip this stub package.
Install
types-termcolor on PyPI
pip
pip install types-termcoloruv
uv add types-termcolorpoetry
poetry add types-termcolorInstalling types-termcolor
Before you install
Low install friction with no runtime dependencies. However, the package has not been updated since 2023-03-28, and the description notes that termcolor has included its own type annotations since version 2.0.0, making this package potentially obsolete for recent termcolor users.
License in practice
Licensed under Apache-2.0 (permissive), which allows commercial and private use with minimal restrictions.
Quickstart
pip install types-termcolor
Then run mypy or pyright on code that imports termcolor to validate types.
Verify before relying
- Whether termcolor 2.0.0+ adoption is widespread enough that this stub package is rarely needed
- Current compatibility with modern versions of mypy, pyright, and pytype
Package facts
| License | Apache-2.0 license (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 1,235 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 580,570/month — #5,910 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_termcolor-1.1.6.2-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
types-emojiProvides type stubs for the emoji package,…
permissive · top 15,000 on PyPI
types-SQLAlchemyProvides PEP 561 type stubs for SQLAlchemy,…
permissive · top 15,000 on PyPI
types-futuresProvides type stubs for the futures package,…
permissive · top 15,000 on PyPI
types-DateTimeRangeProvides type stubs for the DateTimeRange…
permissive · top 15,000 on PyPI
types-typed-astProvides type stubs for the typed-ast package,…
permissive · top 15,000 on PyPI
types-enum34Provides type stubs for the enum34 package,…
permissive · top 15,000 on PyPI
types-chardetProvides type stubs for character encoding…
permissive · top 5,000 on PyPI
types-redisProvides type stubs for the redis package,…
permissive · top 1,000 on PyPI
types-Flask-SQLAlchemyProvides type stubs for Flask-SQLAlchemy to…
permissive · top 15,000 on PyPI
types-stripeProvides type stubs for the stripe package,…
permissive · top 5,000 on PyPI