mypy-boto3-kafka
Type annotations for boto3 Kafka 1.43.66 service generated with mypy-boto3-builder 8.12.0
What it is and what it does
This package is a type stub library that provides complete type annotations for the boto3 Kafka service (version 1.43.66). It enables static type checkers like mypy and pyright, as well as IDEs like VSCode, PyCharm, Emacs, and Sublime Text, to understand and validate boto3 Kafka client calls at development time. The stubs include annotations for the KafkaClient, paginators, type definitions, and literal values, allowing developers to catch type errors before runtime and get IDE autocompletion without writing explicit type hints.
The package is generated automatically using mypy-boto3-builder and depends only on typing-extensions. It is designed as a development-time dependency and can be safely guarded behind TYPE_CHECKING blocks to avoid production dependencies. Installation is straightforward via pip, either standalone or as part of the boto3-stubs bundle, and it works across multiple Python versions (3.9 through 3.14) and implementations.
Use it for:
- Enable IDE autocompletion and type checking for boto3 Kafka client code in VSCode with Pylance or PyCharm.
- Validate boto3 Kafka calls with mypy or pyright in CI/CD pipelines to catch type errors before deployment.
- Get inline documentation and method signatures for KafkaClient in editors that support type stubs.
- Use with paginators and type definitions to ensure correct parameter and return types for Kafka API operations.
- Reduce runtime errors by catching incorrect boto3 Kafka API usage during static analysis.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type annotations and IDE autocompletion for the boto3 Kafka service, enabling static type checking with mypy, pyright, and other tools.
Yes. This is a lightweight, actively maintained type stub package with no security vulnerabilities, permissive MIT licensing, and a single minimal dependency. Install it if you use boto3 Kafka and want static type checking or IDE autocompletion; it is safe to use as a development-only dependency. PyCharm users should be aware of potential performance issues with Literal overloads (noted in the description) and may prefer the lite variant.
Install
mypy-boto3-kafka on PyPI
pip
pip install mypy-boto3-kafkauv
uv add mypy-boto3-kafkapoetry
poetry add mypy-boto3-kafkaInstalling mypy-boto3-kafka
Before you install
Low install friction with a single runtime dependency (typing-extensions). Active maintenance with recent releases; repository shows 670 stars and was last updated 2026-06-22.
License in practice
MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects.
Quickstart
pip install mypy-boto3-kafka
from boto3.session import Session
from mypy_boto3_kafka import KafkaClient
client: KafkaClient = Session().client("kafka")
Requires Python 3.9 or later; boto3 must be installed separately.
Verify before relying
- Whether PyCharm performance issues mentioned in the description (issue PY-40997) remain unresolved or have been addressed.
- Whether the lite variant (boto3-stubs-lite) is recommended as a default for PyCharm users or only when performance problems occur.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — typing-extensions |
| Maintenance | actively maintained — 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 359,534/month — #7,249 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mypy_boto3_kafka-1.43.66-py3-none-any.whl
Keywords: boto3, kafka, boto3-stubs, type-annotations, mypy, typeshed, autocomplete
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
mypy-boto3-s3Provides type annotations and IDE…
permissive · top 1,000 on PyPI
mypy-boto3-socialmessagingProvides type annotations and IDE autocomplete…
permissive · top 15,000 on PyPI
mypy-boto3-ec2Provides type annotations and IDE autocomplete…
permissive · top 5,000 on PyPI
mypy-boto3-devicefarmProvides type annotations for boto3's…
permissive · top 15,000 on PyPI
types-confluent-kafkaProvides type hints and stub files for the…
permissive · top 5,000 on PyPI
mypy-boto3-kmsProvides type annotations and IDE…
permissive · top 5,000 on PyPI
mypy-boto3-kafkaconnectProvides type annotations and IDE autocomplete…
permissive · top 15,000 on PyPI
mypy-boto3-configProvides type annotations and IDE…
permissive · top 15,000 on PyPI
confluent-kafka-stubsProvides type hints and stubs for the…
permissive · top 5,000 on PyPI
mypy-boto3-chatbotProvides type annotations for boto3's AWS…
permissive · top 15,000 on PyPI