Type annotations for boto3.PinpointEmail 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-pinpoint-email
Type annotations for boto3.PinpointEmail 1.14.0 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.4.
More information can be found on boto3-stubs page.
How to use
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]
Use boto3
with mypy_boto3_pinpoint_email
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_pinpoint_email import PinpointEmailClient
# Now mypy can check if your code is valid.
client: PinpointEmailClient = boto3.client("pinpoint-email")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: PinpointEmailClient = session.client("pinpoint-email")
# Annotated paginators are included as well
import mypy_boto3_pinpoint_email.paginator as pinpoint_email_paginators
get_dedicated_ips_paginator: pinpoint_email_paginators.GetDedicatedIpsPaginator = client.get_paginator("get_dedicated_ips")
list_configuration_sets_paginator: pinpoint_email_paginators.ListConfigurationSetsPaginator = client.get_paginator("list_configuration_sets")
list_dedicated_ip_pools_paginator: pinpoint_email_paginators.ListDedicatedIpPoolsPaginator = client.get_paginator("list_dedicated_ip_pools")
list_deliverability_test_reports_paginator: pinpoint_email_paginators.ListDeliverabilityTestReportsPaginator = client.get_paginator("list_deliverability_test_reports")
list_email_identities_paginator: pinpoint_email_paginators.ListEmailIdentitiesPaginator = client.get_paginator("list_email_identities")
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
import boto3
# 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.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a3272a621ee855d4f86d5aa1e217fdc9b4d25f68c4eb2d4f6836b4c8424cb88 |
|
MD5 | ba2c1827740e446b486710137fe961ad |
|
BLAKE2b-256 | b04854b366ba2aa5b3f1cd6f8d486b4b059a7615e79c2e25b460d388dc13c214 |
Hashes for mypy_boto3_pinpoint_email-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a83c0f650be2ca72c7645576290d852185da46fa9a4e893d754dbec6a883bf2 |
|
MD5 | 6b7e22d1c8509c76f6cf176073c46449 |
|
BLAKE2b-256 | d99060cabb466f3b28ca1674ebd5736fa7333d05df1c664e6d5425c691d4ae75 |