Registry /
type-stubs / mypy-boto3-kinesisanalyticsv2
Install & Compatibility
Where this runs
tested against v1.43.51 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.910 runs
installs and imports cleanly · install 0.0s · import 0.624s · 53.5MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 5.6s · import 0.591s · 54MB
52MB installed
● package 52MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
KinesisAnalyticsV2Client
✓ from mypy_boto3_kinesisanalyticsv2 import KinesisAnalyticsV2Client
Demonstrates initializing a `boto3` Kinesis Analytics V2 client with explicit type annotation using `mypy_boto3_kinesisanalyticsv2` for robust type checking and IDE support. Includes a basic example of calling an API operation.
import boto3
from mypy_boto3_kinesisanalyticsv2 import KinesisAnalyticsV2Client
from typing import TYPE_CHECKING
import os
# Best practice: use explicit type annotation for the client
# The TYPE_CHECKING block ensures mypy_boto3 is only a dev dependency.
if TYPE_CHECKING:
client: KinesisAnalyticsV2Client
else:
client = boto3.client(
"kinesisanalyticsv2",
region_name=os.environ.get("AWS_REGION", "us-east-1"),
aws_access_key_id=os.environ.get("AWS_ACCESS_KEY_ID", ""),
aws_secret_access_key=os.environ.get("AWS_SECRET_ACCESS_KEY", ""),
)
print(f"KinesisAnalyticsV2 Client: {client}")
# Example operation: List applications
# The type stubs provide auto-completion and type checking for methods and response shapes.
try:
response = client.list_applications()
# Accessing response elements will now be type-checked
print("Applications found:", [app["ApplicationName"] for app in response.get("ApplicationSummaries", [])])
except Exception as e:
print(f"Error listing Kinesis Analytics V2 applications: {e}")
Debug
Known issues
breakingSupport for Python 3.8 has been removed in `mypy-boto3-builder` version 8.12.0. Users on Python 3.8 should update their Python version or pin to an older `mypy-boto3-kinesisanalyticsv2` release.fixUpgrade to Python 3.9 or newer.
affects: >=8.12.0 of mypy-boto3-builder (affects generated stubs)
breakingType definition names (TypedDicts) were changed in `mypy-boto3-builder` version 8.9.0 for brevity and consistency. For example, `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`, and `Extra` postfixes were moved to the end of names.fixUpdate imports and references to TypeDef names in your codebase according to the new naming conventions.
affects: >=8.9.0 of mypy-boto3-builder (affects generated stubs)
gotchaExplicit type annotations (e.g., `client: KinesisAnalyticsV2Client`) are highly recommended for optimal type checking and IDE auto-completion, especially when using standalone service packages or `boto3-stubs-lite`. Some IDEs (like PyCharm) may also have performance issues with extensive Literal overloads found in the `boto3-stubs` full package.fixAlways add explicit type hints for your `boto3` client and resource objects.
affects: All versions
gotchaThe `mypy-boto3` project underwent a significant change in builder version 8.9.0, moving the 'legacy' `mypy-boto3` package to a separate product. Users migrating from older, monolithic `mypy-boto3` installations might need to adjust their dependency management and import paths to the new `types-boto3` or individual `mypy-boto3-service` packages.fixRefer to the official documentation for the recommended installation and usage patterns, typically `boto3-stubs` with extras or individual service stub packages.
affects: From mypy-boto3-builder 8.9.0 onwards
Upgrade
Version history
1.43.51latest on PyPI · released Jul 17, 2026
Audit
Dependencies
boto3requiredProvides type stubs for this runtime library.