Install & Compatibility
Where this runs
tested against v1.43.75 · 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.000s · 19.4MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.8s · import 0.000s · 20MB
17MB installed
● package 17MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
MediaLiveClient
✓ from mypy_boto3_medialive import MediaLiveClient
✗ from mypy_boto3_medialive import MediaLiveClient
This quickstart demonstrates how to create a `boto3` MediaLive client and apply the `mypy-boto3-medialive` type annotation for improved static analysis. It assumes `boto3` is already installed and configured.
import boto3
from mypy_boto3_medialive import MediaLiveClient
def get_medialive_client() -> MediaLiveClient:
"""Returns a typed MediaLive client."""
# Boto3 client creation remains the same, but now with type hints
client: MediaLiveClient = boto3.client("medialive")
return client
# Example usage with type checking
medialive_client = get_medialive_client()
response = medialive_client.list_channels()
print(f"MediaLive channels: {len(response.get('Channels', []))}")
Debug
Known issues
deprecatedThe `mypy-boto3-*` package naming scheme is considered legacy and deprecated by the maintainers. It is highly recommended to migrate to the `boto3-stubs-*` equivalent packages (e.g., `boto3-stubs-medialive`) for future updates and better feature support.fixUninstall `mypy-boto3-medialive` and install `boto3-stubs-medialive` instead: `pip uninstall mypy-boto3-medialive && pip install boto3-stubs-medialive`.
affects: All versions 8.9.0 and later of `mypy-boto3-builder` consider `mypy-boto3-*` deprecated.
breakingSupport for Python 3.8 was removed in `mypy-boto3-builder` version 8.12.0. Packages generated with this builder, including `mypy-boto3-medialive` 1.42.86 and newer, will no longer support Python 3.8.fixUpgrade your Python environment to 3.9 or higher. If you must use Python 3.8, you will need to pin to an older version of `mypy-boto3-medialive` (e.g., <1.42.86).
affects: mypy-boto3-medialive >= 1.42.86 (generated by builder 8.12.0+)
gotchaThis library provides type *stubs* only; it does not replace or include the actual `boto3` runtime library. You must install `boto3` separately for your code to function at runtime.fixEnsure `boto3` is installed in your environment: `pip install boto3`.
affects: All versions
breakingType definition naming conventions changed in `mypy-boto3-builder` version 8.9.0. This caused potential breaking changes in TypeDef names for all generated services. For instance, `CreateDistributionRequestRequestTypeDef` might have been shortened to `CreateDistributionRequestTypeDef`, or `Extra` postfixes moved.fixReview your code for any custom TypeDef imports or direct references that might have been affected by the naming change and update them accordingly. Refer to the specific service's type_defs module.
affects: mypy-boto3-medialive >= 1.40.0 (generated by builder 8.9.0+)
Upgrade
Version history
1.43.75latest on PyPI · released Aug 19, 2026
Audit
Dependencies
boto3requiredProvides the runtime functionality for which these are type stubs.