Registry / type-stubs / mypy-boto3-sesv2

mypy-boto3-sesv2

JSON →
library1.43.76pypypi✓ verified 23d ago

mypy-boto3-sesv2 provides comprehensive type annotations for the AWS boto3 SESV2 (Simple Email Service v2) client, paginators, and waiters. It allows developers to leverage static type checking with Mypy for their boto3 code, improving code quality and catching potential errors early. The library is updated frequently, often alongside new boto3/botocore releases and builder improvements, ensuring up-to-date and accurate type definitions. Current version: 1.42.63.

pip install mypy-boto3-sesv2 boto3
INSTALL
IMPORT
SIG · MYPY-BOTO3-SESV2
M
mypy-boto3-sesv2
type-stubspythonv1.43.76
Install
3.9s avg
Import
663ms
Disk
51MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.43.76 · 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.910 runs
installs and imports cleanly · install 0.0s · import 0.675s · 52.3MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 3.9s · import 0.651s · 53MB
51MB installed
● package 51MB
Code
Verified usage

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

SESV2Client
from mypy_boto3_sesv2.client import SESV2Client
from boto3.client import SESV2Client
Client types are provided by the stub package, not directly by boto3.
SendEmailRequestRequestTypeDef
from mypy_boto3_sesv2.type_defs import SendEmailRequestRequestTypeDef
Type definitions for service requests/responses are found in type_defs.
Paginator
from mypy_boto3_sesv2.paginator import ListConfigurationSetsPaginator
Paginator types are available for methods that support pagination.

This quickstart demonstrates how to initialize an SESV2 client with `mypy-boto3-sesv2` type annotations and perform a `send_email` operation using type-checked arguments. It also shows how to use a paginator for listing resources. Remember to replace placeholder email addresses and ensure your AWS credentials and region are configured.

import boto3 from mypy_boto3_sesv2.client import SESV2Client from mypy_boto3_sesv2.type_defs import SendEmailRequestRequestTypeDef import os # Initialize a boto3 client with type hints client: SESV2Client = boto3.client( "sesv2", region_name=os.environ.get('AWS_REGION', 'us-east-1') ) # Example: Sending a simple email with type-checked arguments request_params: SendEmailRequestRequestTypeDef = { "FromEmailAddress": "sender@example.com", # Replace with a verified sender "Destination": { "ToAddresses": [ "recipient@example.com" # Replace with a recipient ] }, "Content": { "Simple": { "Subject": {"Data": "Hello from mypy-boto3-sesv2!"}, "Body": {"Text": {"Data": "This is a test email sent with SESv2."}} } } } try: response = client.send_email(**request_params) print(f"Email sent successfully! Message ID: {response['MessageId']}") except Exception as e: print(f"Error sending email: {e}") # Example: Listing configuration sets using a paginator paginator = client.get_paginator("list_configuration_sets") for page in paginator.paginate(): for config_set in page.get("ConfigurationSets", []): print(f"Configuration Set: {config_set['ConfigurationSetName']}")
Debug
Known issues
breakingPython 3.8 support was removed and packages migrated to PEP 561. If you are on Python 3.8, you must pin to a version older than 8.12.0.
fix
Upgrade to Python 3.9+ or pin `mypy-boto3-sesv2<8.12.0` in your project's dependencies.
affects: >=8.12.0
breakingTypeDef naming conventions changed in version 8.9.0 (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`). Code that directly imports or references specific generated type definition names may break.
fix
Review your code for direct references to generated TypeDef names and update them according to the new conventions (typically by removing redundant `Request` or `Response` suffixes if they were duplicated).
affects: >=8.9.0
gotchaThe `mypy` tool must be configured to find the stubs. Ensure `mypy-boto3-sesv2` is installed in the same environment where `mypy` is run, or that your `mypy` configuration (e.g., `mypy.ini`) correctly includes the stub paths.
fix
Verify `mypy` setup. Common fixes include `pip install mypy` in the project's virtual environment and running `mypy your_module.py`.
affects: All versions
gotchaAWS services can be renamed or deprecated (e.g., 'sms-voice' to 'pinpoint-sms-voice' in 8.11.0). If you encounter `ModuleNotFoundError` for a service stub, check the official `mypy-boto3-builder` repository for service name changes or deprecations.
fix
Consult the `mypy-boto3-builder` changelog or PyPI for the correct service stub name. If a service is deprecated, migrate to its replacement.
affects: All versions
gotchaMismatching `boto3` runtime versions and `mypy-boto3-*` stub versions can lead to incorrect type checking or runtime errors. For optimal accuracy, keep your `boto3` and `mypy-boto3-sesv2` versions as aligned as possible.
fix
Regularly update both `boto3` and `mypy-boto3-sesv2` to their latest compatible versions. The `mypy-boto3` packages are typically built against specific `botocore` versions.
affects: All versions
Upgrade
Version history
1.43.76latest on PyPI · released Aug 20, 2026
Audit
Dependencies
boto3requiredProvides the runtime functionality that these stubs type-check.
mypyoptionalRequired for static type checking.
Agent activity
22 hits · last 30 days
node
20
OpenAI (training)
1
Resources
mypy-boto3-sesv2 — pip install mypy-boto3-sesv2 · libregistry