Registry /
type-stubs / mypy-boto3-chime-sdk-media-pipelines
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.610s · 53.4MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 5.4s · import 0.567s · 54MB
52MB installed
● package 52MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
ChimeSDKMediaPipelinesClient
✓ from mypy_boto3_chime_sdk_media_pipelines.client import ChimeSDKMediaPipelinesClient
✗ from boto3.client import ChimeSDKMediaPipelinesClient
Client types are imported from the service-specific `mypy-boto3-*` stub package, not directly from `boto3`.
CreateMediaPipelineRequestTypeDef
✓ from mypy_boto3_chime_sdk_media_pipelines.type_defs import CreateMediaPipelineRequestTypeDef
✗ from typing import Dict, Any
Use specific `TypedDict` definitions for precise type checking of request and response payloads instead of generic `dict` types.
This quickstart demonstrates how to import and use the `ChimeSDKMediaPipelinesClient` type from `mypy-boto3-chime-sdk-media-pipelines` to get type hints for `boto3.client('chime-sdk-media-pipelines')`. It also shows how to use a `TypedDict` for request parameters, ensuring type correctness for API calls. The `if TYPE_CHECKING:` guard ensures that `mypy-boto3` is only a development dependency.
from typing import TYPE_CHECKING
import boto3
if TYPE_CHECKING:
from mypy_boto3_chime_sdk_media_pipelines.client import ChimeSDKMediaPipelinesClient
from mypy_boto3_chime_sdk_media_pipelines.type_defs import CreateMediaPipelineRequestTypeDef
def create_media_pipeline(name: str) -> dict:
# In a real application, you would pass credentials or rely on environment variables/config
# For demonstration, a client is created without explicit credentials.
client: "ChimeSDKMediaPipelinesClient" = boto3.client("chime-sdk-media-pipelines")
# Example of using a TypedDict for request parameters
request_params: "CreateMediaPipelineRequestTypeDef" = {
"DisplayName": name,
"Tags": [{"Key": "Environment", "Value": "Dev"}]
# Add other required parameters as per AWS documentation
}
# This call is for demonstration; actual Chime SDK Media Pipelines creation might require more specific parameters.
# print(f"Attempting to create media pipeline: {name}")
# response = client.create_media_pipeline(DisplayName=name, **request_params)
# print(f"Media pipeline created: {response['MediaPipeline']['MediaPipelineId']}")
# Simulate a successful response for a runnable quickstart
return {
'MediaPipeline': {
'MediaPipelineId': 'dummy-pipeline-id-123',
'MediaPipelineArn': f'arn:aws:chime::123456789012:media-pipeline/{name}/dummy-pipeline-id-123',
'DisplayName': name,
'Status': 'InProgress'
}
}
if __name__ == "__main__":
pipeline_name = "MyTestMediaPipeline"
result = create_media_pipeline(pipeline_name)
print(result)
Debug
Known issues
breakingAs of `mypy-boto3-builder` version 8.12.0, support for Python 3.8 has been removed across all generated `mypy-boto3` packages. Ensure your project uses Python 3.9 or newer.fixUpgrade your Python environment to 3.9 or later. If unable to upgrade, pin `mypy-boto3-*` packages to versions generated by `mypy-boto3-builder < 8.12.0`.
affects: mypy-boto3-builder >= 8.12.0, mypy-boto3-* >= 1.42.0
breakingStarting with `mypy-boto3-builder` version 8.12.0, packages migrated to PEP 561 standard packaging for type stubs. This primarily affects package metadata and structure but generally should be handled transparently by pip.fixNo direct code changes are typically required. Ensure you are using a recent version of `pip` or `uv` for correct installation. If using custom build processes, verify PEP 561 compliance.
affects: mypy-boto3-builder >= 8.12.0, mypy-boto3-* >= 1.42.0
breakingIn `mypy-boto3-builder` version 8.9.0, `TypedDict` naming conventions were changed. Specifically, redundant `Request` suffixes were removed (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`), and `Extra` postfixes were moved to the end of the name. This can break existing type annotations in your code.fixReview and update your `TypedDict` import paths and names to match the new conventions. Consult the specific service's documentation or generated stub files for the correct names.
affects: mypy-boto3-builder >= 8.9.0, mypy-boto3-* >= 1.41.0 (approx.)
gotchaThe `mypy-boto3-*` packages provide *only* type annotations. You must also have `boto3` installed at runtime for your application to function, as these stubs do not include the actual AWS SDK implementation.fixAlways include `boto3` in your project's runtime dependencies (e.g., `pip install boto3` or in `requirements.txt`).
affects: All
gotchaIt is best practice to wrap `mypy-boto3` type imports within `if TYPE_CHECKING:` blocks. This prevents `mypy-boto3` from becoming a runtime dependency, keeping your production environment lighter and avoiding potential issues with static analysis tools like Pylint.fixEncapsulate all `from mypy_boto3_... import ...` statements within an `if TYPE_CHECKING:` block, as shown in the quickstart example.
affects: All
gotcha`mypy` treats `TypedDict` strictly. If a function expects a `TypedDict` and you pass a plain `dict`, even if its keys and values match, `mypy` will raise a type error. Explicitly instantiate `TypedDict` objects or use `typing.cast`.fixInstead of `my_dict = {'Key': 'Value'}`, declare `my_typed_dict: MyTypedDict = {'Key': 'Value'}` or use `typing.cast(MyTypedDict, {'Key': 'Value'})`. affects: All
deprecatedThe standalone `mypy-boto3` root package is now considered 'legacy'. For a comprehensive set of stubs for multiple services, `boto3-stubs` or `types-boto3` are the recommended meta-packages for installation. Individual service packages like `mypy-boto3-chime-sdk-media-pipelines` remain the correct way to import specific client/resource types.fixPrefer `pip install 'boto3-stubs[service_name]'` or `pip install types-boto3` for general usage, alongside specific `mypy-boto3-*` packages for direct type imports. No change needed for specific service stub packages like this one.
affects: mypy-boto3 <= 1.42.3
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredRuntime dependency for actual AWS API calls. These stubs only provide type hints.
pythonrequiredRequires Python 3.9 or higher as of mypy-boto3-builder 8.12.0.