Registry /
type-stubs / mypy-boto3-pinpoint-sms-voice-v2
Install & Compatibility
Where this runs
tested against v1.43.37 · 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 · 18.9MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 2.7s · import 0.000s · 19MB
51MB installed
● package 51MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
PinpointSMSVoiceV2Client
✓ from mypy_boto3_pinpoint_sms_voice_v2 import PinpointSMSVoiceV2Client
✗ from mypy_boto3_pinpoint_sms_voice_v2 import PinpointSMSVoiceV2Client
This quickstart demonstrates how to initialize a boto3 client for Pinpoint SMS Voice V2 and leverage the type annotations provided by mypy-boto3-pinpoint-sms-voice-v2. It's crucial to have both `boto3` and the stub package installed. The example includes basic client usage with type hints.
import boto3
from mypy_boto3_pinpoint_sms_voice_v2.client import PinpointSMSVoiceV2Client
import os
# Instantiate a boto3 session and client
# mypy will use the installed stubs to provide type hints for 'client'
region = os.environ.get('AWS_REGION', 'us-east-1')
session = boto3.Session(region_name=region)
client: PinpointSMSVoiceV2Client = session.client("pinpoint-sms-voice-v2")
# Example of using the typed client (replace with actual values and error handling)
try:
response = client.send_voice_message(
DestinationPhoneNumber="+15551234567", # Replace with a valid E.164 number
OriginationIdentity="MyVoiceSenderId", # Your registered origination identity
MessageBody="Hello from mypy-boto3-pinpoint-sms-voice-v2!",
ConfigurationSetName="Default", # Your existing configuration set
CallerId="+15559876543" # Optional, if you have a caller ID
)
print(f"Voice message sent. Message ID: {response['MessageId']}")
except client.exceptions.ResourceNotFoundException as e:
print(f"Error: Resource not found: {e}")
except Exception as e:
print(f"An unexpected error occurred: {e}")
Upgrade
Version history
1.43.37latest on PyPI · released Jun 29, 2026
Audit
Dependencies
boto3requiredThis library provides type stubs for boto3, which is required at runtime for your application to function.