Registry /
type-stubs / mypy-boto3-kinesis-video-webrtc-storage
Install & Compatibility
Where this runs
tested against v1.43.0 · 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.95 runs
installs and imports cleanly · install 0.0s · import 0.584s · 51.8MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 4.0s · import 0.520s · 52MB
50MB installed
● package 50MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
KinesisVideoWebRTCStorageClient
✓ from mypy_boto3_kinesis_video_webrtc_storage import KinesisVideoWebRTCStorageClient
Client
✓ from mypy_boto3_kinesis_video_webrtc_storage.client import KinesisVideoWebRTCStorageClient as Client
KinesisVideoWebRTCStorageServiceResource
✓ from mypy_boto3_kinesis_video_webrtc_storage import KinesisVideoWebRTCStorageServiceResource
While a resource is technically generated, the Kinesis Video WebRTC Storage service primarily uses a client interface.
This quickstart demonstrates how to initialize a type-hinted Kinesis Video WebRTC Storage client and call its primary `join_storage_session` method. The `if TYPE_CHECKING:` block ensures that your IDE and MyPy can provide full type-safety for the client while allowing standard Boto3 runtime behavior. Remember to replace the placeholder `channel_arn` with a valid AWS resource in your environment.
import os
import boto3
from mypy_boto3_kinesis_video_webrtc_storage import KinesisVideoWebRTCStorageClient
from typing import TYPE_CHECKING
# This block is purely for type checking tools like MyPy.
# At runtime, this block is skipped.
if TYPE_CHECKING:
# 'client' will be correctly typed as KinesisVideoWebRTCStorageClient.
# This allows your IDE and MyPy to provide autocomplete and type validation
# for all service-specific methods and parameters.
client: KinesisVideoWebRTCStorageClient = boto3.client("kinesis-video-webrtc-storage")
else:
# At runtime, 'client' is a standard Boto3 client.
client = boto3.client("kinesis-video-webrtc-storage")
print(f"Boto3 client for Kinesis Video WebRTC Storage created: {type(client)}")
# The KinesisVideoWebRTCStorage service currently has only one primary client operation:
# `join_storage_session`. This operation typically integrates with other Kinesis Video
# services and does not return complex data directly.
# For a runnable example, we'll use a placeholder for ChannelArn.
# In a real application, ensure this ARN is valid and accessible.
channel_arn = os.environ.get(
"KINESIS_VIDEO_WEBRTC_CHANNEL_ARN",
"arn:aws:kinesisvideo:us-east-1:123456789012:channel/example-channel/1234567890123"
)
# Calling a type-checked method:
# MyPy will validate that `ChannelArn` is a required string parameter.
try:
print(f"Attempting to call join_storage_session for channel: {channel_arn}")
response = client.join_storage_session(
ChannelArn=channel_arn
)
# The join_storage_session operation returns an empty dictionary on success.
print(f"Successfully called join_storage_session. Response: {response}")
assert response == {} # Confirming an empty response
except client.exceptions.ResourceNotFoundException:
print(f"Error: Kinesis Video WebRTC Storage channel '{channel_arn}' not found. Please ensure the ARN is correct and exists.")
except Exception as e:
print(f"An unexpected error occurred: {e}")
Debug
Known issues
breakingPython 3.8 is no longer supported for `mypy-boto3` packages. Ensure your project uses Python 3.9 or newer.fixUpgrade your Python environment to 3.9 or a later version.
affects: mypy-boto3-builder >= 8.12.0
breakingTypeDef naming conventions were changed to be shorter and more consistent (e.g., `RequestRequestTypeDef` became `RequestTypeDef`, and `Extra` postfix moved). If you have custom types or logic referencing older TypeDef names, they will break.fixReview and update TypeDef names in your code to match the new patterns generated by `mypy-boto3-builder 8.9.0+`.
affects: mypy-boto3-builder >= 8.9.0
gotchaThis package provides *only* type stubs. You must install `boto3` separately for your code to function at runtime. These stubs enhance `boto3` with type hints, they do not replace it.fixEnsure `boto3` is included in your project's dependencies and installed (`pip install boto3`).
affects: All versions
gotchaFor optimal type checking, the `mypy-boto3-*` stub version should align with the `boto3` version you are using (e.g., `mypy-boto3-kinesis-video-webrtc-storage==1.42.x` for `boto3==1.42.x`). Significant mismatches might lead to incomplete or incorrect type hints.fixKeep your `mypy-boto3-*` stubs and `boto3` core library versions as close as possible. It's often best to update them together.
affects: All versions
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredThis package provides type stubs for boto3; boto3 itself must be installed to use the client.