--- id: types-termcolor version: "1.1.6.2" license: Apache-2.0 license license_treatment: permissive maintenance: active --- # types-termcolor — Typing stubs for termcolor License: permissive · Maintenance: active · Downloads: 580.6K/mo ## 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 above — 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 pip install types-termcolor uv add types-termcolor 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: unspecified - Install friction: low - Maintenance: active - Downloads: 580.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags type stubs termcolor, mypy termcolor typing, static type checking terminal colors, pyright termcolor types, pep 561 type stubs, termcolor type annotations, type hints colored output, type-stubs, deprecated [View on SkillFed](https://skillfed.io/packages/types-termcolor) · [View on PyPI](https://pypi.org/project/types-termcolor/)