Registry /
type-stubs / mypy-boto3-kinesis-video-media
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.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.2MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 2.7s · import 0.000s · 19MB
71MB installed
● package 71MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
KinesisVideoMediaClient
✓ from mypy_boto3_kinesis_video_media import KinesisVideoMediaClient
✗ from mypy_boto3_kinesis_video_media import KinesisVideoMediaClient
This quickstart demonstrates how to obtain a `boto3` Kinesis Video Media client and explicitly type it using the `mypy-boto3-kinesis-video-media` stubs. This allows static analysis tools like Mypy to provide autocompletion and validate method calls against the AWS API specification. Note that actual API calls require a properly configured AWS environment and valid stream ARNs.
import boto3
from typing import TYPE_CHECKING
# These type imports are only needed for explicit annotations during type checking.
# Mypy often discovers them automatically if the stubs are installed.
if TYPE_CHECKING:
from mypy_boto3_kinesis_video_media.client import KinesisVideoMediaClient
from mypy_boto3_kinesis_video_media.type_defs import GetMediaInputRequestTypeDef
def get_kinesis_video_media_client():
# In a real application, ensure credentials/region are configured
# via environment variables, ~/.aws/credentials, or boto3 session config.
# For this example, we assume default configuration.
client = boto3.client("kinesis-video-media")
# For static type checking with Mypy, you can explicitly annotate the client.
if TYPE_CHECKING:
typed_client: KinesisVideoMediaClient = client
# Example of using a TypedDict from the stubs
get_media_params: GetMediaInputRequestTypeDef = {
"StreamARN": "arn:aws:kinesisvideo:REGION:ACCOUNT_ID:stream/YOUR_STREAM/1234567890123",
"StartSelector": {"StartSelectorType": "NOW"}
}
print(f"Client with type hints ready: {typed_client}")
# Mypy will now validate calls to `typed_client` based on KinesisVideoMedia API.
# Example (commented out as it requires a live stream and specific permissions):
# response = typed_client.get_media(**get_media_params)
# print(f"Response: {response}")
else:
print(f"Runtime client: {client}")
get_kinesis_video_media_client()
Debug
Known issues
breakingSupport for Python 3.8 was removed in `mypy-boto3-builder` version 8.12.0. Any `mypy-boto3-*` packages built with 8.12.0 or newer (including `mypy-boto3-kinesis-video-media` 1.42.3) require Python 3.9 or higher.fixUpgrade your Python environment to 3.9 or newer.
affects: mypy-boto3-builder >= 8.12.0 (and dependent service packages)
breakingStarting with `mypy-boto3-builder` 8.9.0, TypeDef names for method arguments (especially those ending with 'RequestTypeDef') were shortened, and conflicting TypeDef 'Extra' postfixes were moved. This can break code that directly imports or references specific TypeDefs.fixUpdate your code to use the new TypeDef naming conventions. Consult the specific service's `mypy-boto3` documentation for exact changes.
affects: mypy-boto3-builder >= 8.9.0 (and dependent service packages like `mypy-boto3-kinesis-video-media` 1.42.3)
gotchaThese are service-specific stubs. To type-check all `boto3` clients, you typically need to install `mypy-boto3-core` or install a separate `mypy-boto3-*` package for each AWS service you use. Mypy will only provide type hints for the services whose stubs are installed.fixInstall `mypy-boto3-core` for general boto3 typing or install specific `mypy-boto3-SERVICE_NAME` packages for each service your application uses.
affects: All versions
gotchaThe `mypy-boto3` project migrated to PEP 561 compliant packages in `mypy-boto3-builder` version 8.12.0. While this generally improves compatibility and discovery, ensure your build system properly recognizes and uses namespace packages if you encounter issues.fixNo specific fix required for most users, as this improves standard behavior. If issues arise, ensure your `pip` is up-to-date and your environment correctly handles PEP 561 stub-only packages.
affects: mypy-boto3-builder >= 8.12.0 (and dependent service packages)
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
No dependency data recorded yet.