types-aiobotocore-sesv2
raw JSON → 3.5.0 verified Fri May 01 auth: no python
Type annotations for aiobotocore SESV2 service, generated by mypy-boto3-builder. Version 3.5.0, monthly releases aligned with aiobotocore.
pip install types-aiobotocore-sesv2 Common errors
error ModuleNotFoundError: No module named 'types_aiobotocore_sesv2' ↓
cause Package not installed
fix
pip install types-aiobotocore-sesv2
error Cannot find reference 'SESV2Client' in '__init__.py' ↓
cause IDE using wrong Python interpreter or missing stub package
fix
Ensure types-aiobotocore-sesv2 is installed in the same environment as your project.
Warnings
breaking Python 3.8 support removed starting from version 8.12.0 (mypy-boto3-builder). Ensure your runtime is Python 3.9+. ↓
fix Upgrade to Python 3.9 or later.
breaking TypeDef naming changed in builder 8.9.0: longer names like 'CreateDistributionRequestRequestTypeDef' were shortened to 'CreateDistributionRequestTypeDef'. This may break existing type references. ↓
fix Update your imports to use the new shorter TypeDef names.
gotcha The package only provides type stubs. You must also install aiobotocore at runtime. ↓
fix Install both: pip install aiobotocore types-aiobotocore-sesv2
gotcha Do NOT import directly from aiobotocore.client; use the type stubs from this package for proper type checking. ↓
fix Use: from types_aiobotocore_sesv2 import SESV2Client
Install
pip install 'types-aiobotocore-sesv2[doc]' Imports
- SESV2Client wrong
from aiobotocore.client import SESV2Clientcorrectfrom types_aiobotocore_sesv2 import SESV2Client - SESV2ServiceResource wrong
from aiobotocore.resources import SESV2ServiceResourcecorrectfrom types_aiobotocore_sesv2 import SESV2ServiceResource - GetAccountOutputTypeDef wrong
try importing directly from mypy-boto3-buildercorrectfrom types_aiobotocore_sesv2.type_defs import GetAccountOutputTypeDef
Quickstart
import os
from types_aiobotocore_sesv2 import SESV2Client
session = aiobotocore.session.AioSession()
async def main():
async with session.create_client('sesv2', region_name='us-east-1',
aws_access_key_id=os.environ.get('AWS_ACCESS_KEY_ID', ''),
aws_secret_access_key=os.environ.get('AWS_SECRET_ACCESS_KEY', '')) as client:
# client type is SESV2Client
response = await client.get_account()
print(response['DedicatedIpAutoWarmupEnabled'])