types-chardet
Typing stubs for chardet
Decision gist · record as of 2026-08-14
No, unless locked to character encoding detection library versions before 5.1.0. The description states the underlying library includes native type stubs since version 5.1.0 and recommends uninstalling this package if using that or a newer version. The package has not been updated since 2023-05-10.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Only useful with character encoding detection library versions before 5.1.0; the description notes that version 5.1.0 and later include native type annotations, making this package redundant.
- Low install friction with no runtime dependencies.
- However, the package has not been updated since 2023-05-10 and the description notes it is superseded by native type annotations available since version 5.1.0 of the underlying library.
License · maintenance · safety
Apache-2.0 license (permissive) — Licensed under Apache-2.0 (permissive), allowing use in most projects without restriction.
last release 2023-05-10 (1192 days) · last repo commit 2026-08-14 · 5,108 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,335,467 downloads/mo, #4,035 on PyPI
Alternatives
Verify before relying
pip install types-chardet
# Type checkers like mypy and pyright will now validate code
# that uses the character encoding detection library- Whether the type stubs remain accurate for library versions released after 2023-05-10.
- Compatibility with the latest versions of mypy, pyright, pytype, and PyCharm.
- Current maintenance status and whether updates are planned.
What it is and what it does
types-chardet is a PEP 561 type stub package that provides type information for character encoding detection. It allows static type checkers like mypy, pyright, and pytype to understand and validate code that uses the underlying library, catching type errors before runtime.
The package is maintained as part of the typeshed project and has no runtime dependencies. However, the description explicitly notes that the underlying library includes type annotations or type stubs since version 5.1.0, and recommends uninstalling this package if using that version or later. The package has not been updated since 2023-05-10.
Use it for
- Enable type checkers to validate code using character encoding detection in projects locked to pre-5.1.0 versions.
- Provide IDE autocomplete and type hints for encoding detection function calls in editors like PyCharm with older library versions.
- Satisfy type-checking CI pipelines requiring full type coverage for all dependencies on pre-5.1.0 versions.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No, unless locked to character encoding detection library versions before 5.1.0.
The description states the underlying library includes native type stubs since version 5.1.0 and recommends uninstalling this package if using that or a newer version. The package has not been updated since 2023-05-10.
Install
types-chardet on PyPI
Before you install
Low install friction with no runtime dependencies. However, the package has not been updated since 2023-05-10 and the description notes it is superseded by native type annotations available since version 5.1.0 of the underlying library.
Only useful with character encoding detection library versions before 5.1.0; the description notes that version 5.1.0 and later include native type annotations, making this package redundant.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in most projects without restriction.
Quickstart
pip install types-chardet
# Type checkers like mypy and pyright will now validate code
# that uses the character encoding detection library
Verify before relying
- Whether the type stubs remain accurate for library versions released after 2023-05-10.
- Compatibility with the latest versions of mypy, pyright, pytype, and PyCharm.
- Current maintenance status and whether updates are planned.
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,192 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,335,467 / month, #4,035 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Typing :: Stubs Only |
Evidence: types_chardet-5.0.4.6-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “type stubs for chardet”
- types-chardetProvides type stubs for character encoding detection, enabling static…
- encutilsProvides encoding and character detection utilities, building on…
- chardetDetects character encoding and language in byte sequences with high…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also types-emoji · types-Pillow · encutils · types-SQLAlchemy · chardet · types-typed-ast · types-Flask-SQLAlchemy · types-enum34 · types-babel · types-attrs