types-confluent-kafka
Types for Confluent Kafka
What it is and what it does
types-confluent-kafka is a type-stub package that provides static type information for the confluent-kafka library. It allows developers using mypy or other type checkers to catch type errors at development time, and enables IDE language servers to provide accurate autocompletion and inline documentation. The package is community-maintained (not officially endorsed by Confluent) and designed for users on confluent-kafka versions prior to 2.13.0, when the library added its own built-in type hints. Since it contains only stub files and metadata, it has zero runtime dependencies and installs with minimal friction.
The package follows semantic versioning and is actively maintained with frequent releases to track API changes. It supports Python 3.9 through 3.14. Users on confluent-kafka 2.13.0 or later should use the official type hints instead.
Use it for:
- Add type checking to a confluent-kafka application running on versions below 2.13.0.
- Enable IDE autocompletion and inline documentation for confluent-kafka APIs in mypy-enabled projects.
- Migrate a legacy codebase to static typing without upgrading the confluent-kafka dependency immediately.
- Catch configuration and API misuse errors at development time in Kafka client code.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type hints and stub files for the confluent-kafka package to enable static type checking with mypy and IDE autocompletion.
Yes, if you are using confluent-kafka below version 2.13.0 and want type checking and IDE support. No, if you are already on confluent-kafka 2.13.0 or later—use the official type hints instead. The package is actively maintained, has no runtime overhead, and carries a permissive license, making it a low-risk addition for teams that need it.
Install
types-confluent-kafka on PyPI
pip
pip install types-confluent-kafkauv
uv add types-confluent-kafkapoetry
poetry add types-confluent-kafkaInstalling types-confluent-kafka
Before you install
Low friction install with no runtime dependencies. Actively maintained with recent commits as of 2026-04-11, though intended primarily for confluent-kafka versions below 2.13.0.
License in practice
Licensed under Apache-2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions.
Quickstart
pip install types-confluent-kafka
# Type checking now works with your confluent-kafka code
# mypy will validate your usage patterns
Intended for confluent-kafka versions below 2.13.0; confluent-kafka 2.13.0+ includes official type hints.
Verify before relying
- Exact coverage of confluent-kafka API surface across different versions—compatibility table referenced but not detailed.
- Whether type hints remain accurate relative to confluent-kafka's evolution post-2.13.0.
- How to use this package in practice with confluent-kafka as a peer dependency.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<3.15,>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 158 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,742,194/month — #3,601 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_confluent_kafka-1.4.1-py3-none-any.whl
Keywords: types, typings, stubs, confluent_kafka, mypy, lsp, completion, type hints, type checking
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
confluent-kafka-stubsProvides type hints and stubs for the…
permissive · top 5,000 on PyPI
mypy-boto3-kafkaProvides type annotations and IDE…
permissive · top 15,000 on PyPI
mypy-boto3-kafkaconnectProvides type annotations and IDE autocomplete…
permissive · top 15,000 on PyPI
types-PyMySQLProvides type stubs for PyMySQL to enable…
permissive · top 5,000 on PyPI
confluent-kafkaProvides a high-performance Python client for…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-confluent-kafkaAdds distributed tracing to confluent-kafka…
permissive · top 5,000 on PyPI
pyspark-stubsProvides type stubs for PySpark to enable…
permissive · top 15,000 on PyPI
confluent_avroSerializes and deserializes Avro data according…
permissive · top 15,000 on PyPI
types-dockerProvides type hints for the docker package,…
permissive · top 5,000 on PyPI
pulumi-confluentcloudPulumi provider for declaring and managing…
permissive · top 15,000 on PyPI