Type annotations for boto3.SESV2 1.14.36 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-sesv2
Type annotations for boto3.SESV2 1.14.36 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.2.0.
More information can be found on boto3-stubs page.
How to install
Make sure you have mypy installed and activated in your IDE.
Install boto3-stubs
for SESV2
service.
python -m pip install boto3-stubs[sesv2]
How to use
Client annotations
SESV2Client
provides annotations for boto3.client("sesv2")
.
import boto3
from mypy_boto3_sesv2 import SESV2Client
from mypy_boto3_sesv2.type_defs import AccountDetailsTypeDef, ...
client: SESV2Client = boto3.client("sesv2")
# now client usage is checked by mypy and IDE should provide code auto-complete
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: SESV2Client = session.client("sesv2")
Typed dictionations
mypy_boto3_sesv2.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
def get_structure() -> AccountDetailsTypeDef:
return {
...
}
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_sesv2
and other installed services.
# Run this command after you add or remove service packages
python -m mypy_boto3
Generated type annotations provide overloads for boto3.client
and boto3.resource
,
boto3.Session.client
and boto3.Session.resource
functions,
so explicit type annotations are not needed.
mypy
supports function overloads as expectedPyCharm
also supports function overloads, but consumes a lot of RAM, use carefully if you have many services installedVSCode
does not currently support function overloads, use explicit type annotations
# Type is discovered correctly by mypy and PyCharm
# VSCode still needs explicit type annotations
client = boto3.client("sesv2")
session_client = boto3.Session().client("sesv2")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mypy-boto3-sesv2-1.14.36.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a2118e1272bbd5c7b100f5a929fba90be303ef21ffa14f4e1de63d3548b1387 |
|
MD5 | 8750b64dd41476d3c82b94cf0d1e7b11 |
|
BLAKE2b-256 | 8c9f7c3a321ff50d9830753666dad814c44d38612bd910309deefed0b65abbdc |
Hashes for mypy_boto3_sesv2-1.14.36.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14c3fa10f251df379c3d8a37eb19a7bfb2f296e4cabcce31ad8809a03c3d4aa5 |
|
MD5 | 0b99c5c60774e13ae9b83c90ce869b66 |
|
BLAKE2b-256 | e09f8b3e7854e904337846d97d92b7509199bb5ff7e42299f9fdeaa86afa14aa |