skillfed

types-termcolor

Typing stubs for termcolor

types-termcolor v1.1.6.2 580.6K downloads/30d#5,910 on PyPI5,108
Permissive license Apache-2.0 license Active released

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-termcolor

uv

uv add types-termcolor

poetry

poetry add types-termcolor

Installing 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

License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Typing :: Stubs Only

Tags

type stubs termcolormypy termcolor typingstatic type checking terminal colorspyright termcolor typespep 561 type stubstermcolor type annotationstype hints colored output
type-stubsdeprecated

More Software Development packages