Registry /
type-stubs / mypy-boto3-kinesisvideo
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 · 19.8MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 3.4s · import 0.000s · 20MB
18MB installed
● package 18MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
KinesisVideoClient
✓ from mypy_boto3_kinesisvideo import KinesisVideoClient
✗ from mypy_boto3_kinesisvideo import KinesisVideoClient
This quickstart demonstrates how to obtain a type-hinted KinesisVideo client using `boto3` and perform a `list_streams` operation. The `TYPE_CHECKING` block ensures that `mypy_boto3_kinesisvideo` is only imported during type checking, avoiding a runtime dependency if not strictly needed in production code.
import boto3
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from mypy_boto3_kinesisvideo.client import KinesisVideoClient
from mypy_boto3_kinesisvideo.type_defs import ListStreamsOutputTypeDef
def get_kinesisvideo_client() -> 'KinesisVideoClient':
# In a real application, credentials and region would be configured
# via environment variables, ~/.aws/credentials, or other boto3 methods.
# Using os.environ.get for example runnable code.
session = boto3.Session(
aws_access_key_id=os.environ.get('AWS_ACCESS_KEY_ID', 'test'),
aws_secret_access_key=os.environ.get('AWS_SECRET_ACCESS_KEY', 'test'),
region_name=os.environ.get('AWS_DEFAULT_REGION', 'us-east-1')
)
client: KinesisVideoClient = session.client("kinesisvideo")
return client
def list_kinesis_streams():
client = get_kinesisvideo_client()
response: ListStreamsOutputTypeDef = client.list_streams()
print("Kinesis Video Streams:")
for stream_info in response.get('StreamInfoList', []):
print(f" - {stream_info.get('StreamName')} (ARN: {stream_info.get('StreamARN')})")
# Example usage:
if __name__ == '__main__':
import os
# Set dummy AWS credentials for local execution if not already set
# For actual AWS interaction, ensure valid credentials are configured.
os.environ.setdefault('AWS_ACCESS_KEY_ID', 'AKIAIOSFODNN7EXAMPLE')
os.environ.setdefault('AWS_SECRET_ACCESS_KEY', 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY')
os.environ.setdefault('AWS_DEFAULT_REGION', 'us-east-1')
try:
list_kinesis_streams()
except Exception as e:
print(f"An error occurred: {e}")
print("Please ensure AWS credentials are correctly configured if you expect real data.")
Debug
Known issues
breakingSupport for Python 3.8 was removed in `mypy-boto3-builder` version 8.12.0. Users on Python 3.8 will need to upgrade their Python version to 3.9 or higher to use recent versions of this library.fixUpgrade your Python environment to 3.9 or newer.
affects: >=8.12.0 of mypy-boto3-builder (corresponds to mypy-boto3-kinesisvideo 1.42.3 and later)
breakingThe library migrated to PEP 561 compatible packages in `mypy-boto3-builder` version 8.12.0. This might affect custom build systems or environments that expect the older package structure.fixEnsure your build system is compatible with PEP 561 package layouts. Standard pip installations should handle this automatically.
affects: >=8.12.0 of mypy-boto3-builder (corresponds to mypy-boto3-kinesisvideo 1.42.3 and later)
breakingTypeDef naming conventions were changed in `mypy-boto3-builder` 8.9.0. Specifically, packed method arguments' TypeDefs use shorter names, and conflicting `Extra` postfixes were moved to the end. While this might not directly impact `KinesisVideo` specifically, it is a general change in the builder that could affect other services used alongside `KinesisVideo`.fixReview your code for any custom TypeDef imports or usage patterns, especially for services with complex request/response types, and adjust to the new naming conventions if necessary.
affects: >=8.9.0 of mypy-boto3-builder
gotchaThis package provides type annotations only. For the actual runtime functionality, the `boto3` library must also be installed in your environment.fixEnsure you have `pip install boto3` in your project's dependencies alongside `mypy-boto3-kinesisvideo`.
affects: All versions
gotchaFor optimal type checking and IDE auto-completion, especially for `boto3.client` and `boto3.session.client` calls, explicit type annotations are highly recommended.fixAlways explicitly type hint your boto3 client objects, e.g., `client: KinesisVideoClient = session.client("kinesisvideo")`. affects: All versions
gotchaPylint might report undefined variables when using `TYPE_CHECKING` for conditional imports. To avoid this, set all types to `object` in the non-`TYPE_CHECKING` branch.fixImplement the `if TYPE_CHECKING: ... else: ... = object` pattern for types imported from `mypy-boto3-*` packages, as shown in the quickstart example.
affects: All versions
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
pythonrequiredmypy-boto3-builder dropped support for Python 3.8 in version 8.12.0.
boto3requiredThis library provides type annotations for boto3; boto3 itself is required for runtime functionality.