Registry / type-stubs / mypy-boto3-chime-sdk-messaging

mypy-boto3-chime-sdk-messaging

JSON →
library1.43.0pypypi✓ verified 22d ago

mypy-boto3-chime-sdk-messaging provides type annotations for the boto3 ChimeSDKMessaging service, enhancing development with static type checking in environments like VSCode, PyCharm, and mypy. It is generated by `mypy-boto3-builder` (currently version 8.12.0) and closely tracks the `boto3` release cycle, with frequent updates to ensure compatibility and comprehensive type hints. The current version is 1.42.3.

pip install mypy-boto3-chime-sdk-messaging boto3
INSTALL
IMPORT
SIG · MYPY-BOTO3-CHIME-S
M
mypy-boto3-chime-sdk-messaging
type-stubspythonv1.43.0
Install
3.7s avg
Import
586ms
Disk
50MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
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
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.608s · 52MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.7s · import 0.564s · 52MB
50MB installed
● package 50MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ChimeSDKMessagingClient
from mypy_boto3_chime_sdk_messaging.client import ChimeSDKMessagingClient
Import specific client type for type checking.
CreateChannelMessageResponseTypeDef
from mypy_boto3_chime_sdk_messaging.type_defs import CreateChannelMessageResponseTypeDef
Import specific TypeDef for detailed response type hinting.

This quickstart demonstrates how to use the `ChimeSDKMessagingClient` with type hints for a `create_channel_message` operation. The `TYPE_CHECKING` guard ensures that `mypy-boto3-chime-sdk-messaging` is only a development dependency.

import boto3 from typing import TYPE_CHECKING if TYPE_CHECKING: from mypy_boto3_chime_sdk_messaging.client import ChimeSDKMessagingClient from mypy_boto3_chime_sdk_messaging.type_defs import CreateChannelMessageResponseTypeDef def send_chime_message(channel_arn: str, content: str, app_instance_user_arn: str) -> 'CreateChannelMessageResponseTypeDef': client: ChimeSDKMessagingClient = boto3.client("chime-sdk-messaging", region_name="us-east-1") response = client.create_channel_message( ChannelArn=channel_arn, Content=content, MessageType="STANDARD", AppInstanceUserArn=app_instance_user_arn ) print(f"Message ID: {response.get('ChannelMessage', {}).get('MessageId')}") return response # Example usage (replace with actual values for a runnable example) # if __name__ == "__main__": # CHANNEL_ARN = os.environ.get('CHIME_CHANNEL_ARN', 'arn:aws:chime:us-east-1:123456789012:app-instance/xxxx/channel/yyyy') # CONTENT = "Hello from mypy-boto3!" # APP_INSTANCE_USER_ARN = os.environ.get('CHIME_APP_INSTANCE_USER_ARN', 'arn:aws:chime:us-east-1:123456789012:app-instance-user/zzzz') # # if CHANNEL_ARN and APP_INSTANCE_USER_ARN: # message_response = send_chime_message(CHANNEL_ARN, CONTENT, APP_INSTANCE_USER_ARN) # print(message_response) # else: # print("Please set CHIME_CHANNEL_ARN and CHIME_APP_INSTANCE_USER_ARN environment variables.")
Debug
Known issues
breakingPython 3.8 support has been removed by `mypy-boto3-builder` (version 8.12.0). Projects using Python 3.8 will need to upgrade their Python version or use an older `mypy-boto3-builder` version if building stubs locally.
fix
Upgrade Python to 3.9 or newer. If building stubs locally, pin `mypy-boto3-builder` to `<8.12.0`.
affects: mypy-boto3-builder>=8.12.0
breakingThe `mypy-boto3-builder` (version 8.12.0) migrated to PEP 561 compliant packages. This might require updates to how type checkers resolve stubs, especially in complex project setups.
fix
Ensure your `pyproject.toml` or `setup.py` correctly declares `mypy-boto3-chime-sdk-messaging` as a typing-only dependency (e.g., in a `[tool.mypy]` section or `extra_requires` for `dev`).
affects: mypy-boto3-builder>=8.12.0
breakingIn `mypy-boto3-builder` (version 8.9.0), TypeDef names for packed method arguments were shortened (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`), and conflicting `Extra` postfixes were moved (e.g., `CreateDistributionExtraRequestTypeDef` -> `CreateDistributionRequestExtraTypeDef`). This affects explicit imports of such TypeDefs.
fix
Update imports and references to affected TypeDef names according to the new naming conventions.
affects: mypy-boto3-builder>=8.9.0
gotchaTo avoid installing `mypy-boto3-chime-sdk-messaging` as a runtime dependency, it is best practice to import specific types within an `if TYPE_CHECKING:` block. This keeps your production environment lighter.
fix
Wrap type-specific imports (e.g., `from mypy_boto3_chime_sdk_messaging.client import ChimeSDKMessagingClient`) inside `if TYPE_CHECKING:` blocks.
affects: All versions
gotchaPyCharm users might experience slow performance with `Literal` overloads in `mypy-boto3` packages (due to issue PY-40997). For large projects or if performance is an issue, consider using the 'lite' versions (e.g., `boto3-stubs-lite`) which are more RAM-friendly but may require more explicit type annotations.
fix
Use `boto3-stubs-lite` variants or consider disabling PyCharm's internal type checker and using `mypy` or `pyright` externally.
affects: All versions
gotchaService names can be renamed or excluded by the `mypy-boto3-builder`. For example, `sms-voice` was removed in builder version 8.11.0. While this specific package is for Chime SDK Messaging, users should be aware that service name changes in `boto3` or `botocore` may lead to corresponding changes in `mypy-boto3` package names.
fix
Refer to the `mypy-boto3` documentation or `mypy-boto3-builder` changelog for updates on service package names following `boto3` releases.
affects: All versions
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides the AWS SDK for Python, which this library provides type stubs for.
typing-extensionsoptionalMay be required for older Python versions (e.g., <3.9) to support modern typing features used by the stubs.
Agent activity
23 hits · last 30 days
node
20
OpenAI (training)
1
Resources
mypy-boto3-chime-sdk-messaging — pip install mypy-boto3-chime-sdk-messaging · libregistry