skillfed

mypy-boto3-kafka

Type annotations for boto3 Kafka 1.43.66 service generated with mypy-boto3-builder 8.12.0

mypy-boto3-kafka v1.43.66 359.5K downloads/30d#7,249 on PyPI670
Permissive license MIT Active released

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

uv

uv add mypy-boto3-kafka

poetry

poetry add mypy-boto3-kafka

Installing 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

Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTyping :: Stubs Only

Tags

boto3 kafka type stubstype annotations aws kafkamypy boto3 kafkaboto3 kafka autocompletetype hints kafka clientpyright boto3 kafkaide support boto3 kafka
type-stubsboto3aws-kafka

More Software Development packages