Install & Compatibility
Where this runs
tested against v1.43.67 · 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.9MB
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.
MediaTailorClient
✓ from mypy_boto3_mediatailor import MediaTailorClient
✗ from mypy_boto3_mediatailor import MediaTailorClient
This quickstart demonstrates how to initialize a type-hinted MediaTailor client and perform a basic API call (list_channels). It highlights how to apply type annotations to the client object and API responses, leveraging the benefits of static type checking with `mypy` or similar tools.
import boto3
from mypy_boto3_mediatailor.client import MediaTailorClient
from mypy_boto3_mediatailor.type_defs import ListChannelsResponseTypeDef
# Create a typed client for AWS MediaTailor
client: MediaTailorClient = boto3.client("mediatailor")
# Example: List channels with type hints
try:
response: ListChannelsResponseTypeDef = client.list_channels()
channels = response.get('Items', [])
print(f"Found {len(channels)} MediaTailor Channels:")
for channel in channels:
print(f"- {channel.get('ChannelName', 'N/A')} (ARN: {channel.get('ChannelArn', 'N/A')})")
except Exception as e:
print(f"Error listing channels: {e}")
print("Ensure AWS credentials and 'mediatailor' service are configured correctly.")
Debug
Known issues
breakingSupport for Python 3.8 was removed in `mypy-boto3-builder` version 8.12.0, which generated this package version. Projects using `mypy-boto3-mediatailor` 1.42.84 or newer (generated by builder 8.12.0+) require Python 3.9 or higher.fixUpgrade your Python environment to 3.9 or newer.
affects: mypy-boto3-builder >= 8.12.0 (affecting mypy-boto3-mediatailor >= 1.42.84)
breakingType definition names for packed method arguments may have changed for some services. For example, `CreateDistributionRequestRequestTypeDef` might become `CreateDistributionRequestTypeDef`. This could affect code directly referencing such types.fixReview your code for direct references to TypeDef names and update them according to the new naming conventions if type errors occur.
affects: mypy-boto3-builder >= 8.9.0 (affecting mypy-boto3-* packages generated with it)
gotchaThis package provides *only* type annotations. You must have the `boto3` library installed separately (`pip install boto3`) for your code to run at runtime. This package does not declare `boto3` as a runtime dependency.fixEnsure `boto3` is included in your project's runtime dependencies (`pip install boto3`).
affects: All versions
gotchaThe `mypy-boto3` stub packages are tightly coupled with `boto3` versions. For optimal type checking, ensure your `mypy-boto3-mediatailor` version aligns with your installed `boto3` version (e.g., `mypy-boto3-mediatailor==X.Y.Z` for `boto3==X.Y.Z`).fixMatch `mypy-boto3-mediatailor`'s version to your `boto3` version. Consider using `boto3-stubs` which helps manage versions for all services.
affects: All versions
gotchaAvoid installing individual `mypy-boto3-*` service packages (like `mypy-boto3-mediatailor`) if you have already installed the comprehensive `boto3-stubs` package, which includes all service stubs. Installing both can lead to redundancy or potential conflicts.fixChoose one approach: either install `boto3-stubs` (recommended for projects using multiple services) or install individual `mypy-boto3-*` packages for only the services you need. Do not mix them for the same services.
affects: All versions
Upgrade
Version history
1.43.67latest on PyPI · released Aug 7, 2026
Audit
Dependencies
boto3requiredRequired at runtime for the code that uses these type hints. This package only provides type annotations.
typing-extensionsoptionalProvides backports of typing features for older Python versions. It's often an indirect dependency managed by the package's builder.