Type annotations for boto3.PinpointEmail 1.14.9 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-pinpoint-email
Type annotations for boto3.PinpointEmail 1.14.9 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 PinpointEmail
service.
python -m pip install boto3-stubs[pinpoint-email]
How to use
Client annotations
PinpointEmailClient
provides annotations for boto3.client("pinpoint-email")
.
import boto3
from mypy_boto3_pinpoint_email import PinpointEmailClient
from mypy_boto3_pinpoint_email.paginator import (
GetDedicatedIpsPaginator,
ListConfigurationSetsPaginator,
ListDedicatedIpPoolsPaginator,
ListDeliverabilityTestReportsPaginator,
ListEmailIdentitiesPaginator,
)
from mypy_boto3_pinpoint_email.type_defs import BlacklistEntryTypeDef, ...
client: PinpointEmailClient = boto3.client("pinpoint-email")
# 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: PinpointEmailClient = session.client("pinpoint-email")
Paginators annotations
mypy_boto3_pinpoint_email.paginator
module contains type annotations for all paginators.
client: PinpointEmailClient = boto3.client("pinpoint-email")
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
get_dedicated_ips_paginator: GetDedicatedIpsPaginator = client.get_paginator("get_dedicated_ips")
list_configuration_sets_paginator: ListConfigurationSetsPaginator = client.get_paginator("list_configuration_sets")
list_dedicated_ip_pools_paginator: ListDedicatedIpPoolsPaginator = client.get_paginator("list_dedicated_ip_pools")
list_deliverability_test_reports_paginator: ListDeliverabilityTestReportsPaginator = client.get_paginator("list_deliverability_test_reports")
list_email_identities_paginator: ListEmailIdentitiesPaginator = client.get_paginator("list_email_identities")
Typed dictionations
mypy_boto3_pinpoint_email.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
def get_structure() -> BlacklistEntryTypeDef:
return {
...
}
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_pinpoint_email
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("pinpoint-email")
session_client = boto3.Session().client("pinpoint-email")
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-pinpoint-email-1.14.9.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bbcbc3ec9564d1a3ea7565a6b244b6144ce75d6bec8971fb9b7c1e7f0be072d |
|
MD5 | e15e5b23857d40d8ca5abcaaa715a8ca |
|
BLAKE2b-256 | 2168de9d9a457af233ce4073471fb12da70452acd1fd6569b6f0477c78935930 |
Hashes for mypy_boto3_pinpoint_email-1.14.9.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d7f8659151d14b6ab19ba4f24ef2e6943dd81ae043fb46e9781df6f32115547 |
|
MD5 | 7a2c873155249e6346ac370ddd05651f |
|
BLAKE2b-256 | 2f16bf3bf3231909431149ba0322968b85b2bfcc60a5ce9704458c690c488c04 |