Type annotations for boto3.AppSync 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-appsync
Type annotations for boto3.AppSync 1.13.26 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 AppSync
service.
python -m pip install boto3-stubs[appsync]
Use boto3
with mypy_boto3_appsync
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_appsync import AppSyncClient
# Now mypy can check if your code is valid.
client: AppSyncClient = boto3.client("appsync")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: AppSyncClient = session.client("appsync")
# Annotated paginators are included as well
import mypy_boto3_appsync.paginator as appsync_paginators
list_api_keys_paginator: appsync_paginators.ListApiKeysPaginator = client.get_paginator("list_api_keys")
list_data_sources_paginator: appsync_paginators.ListDataSourcesPaginator = client.get_paginator("list_data_sources")
list_functions_paginator: appsync_paginators.ListFunctionsPaginator = client.get_paginator("list_functions")
list_graphql_apis_paginator: appsync_paginators.ListGraphqlApisPaginator = client.get_paginator("list_graphql_apis")
list_resolvers_paginator: appsync_paginators.ListResolversPaginator = client.get_paginator("list_resolvers")
list_resolvers_by_function_paginator: appsync_paginators.ListResolversByFunctionPaginator = client.get_paginator("list_resolvers_by_function")
list_types_paginator: appsync_paginators.ListTypesPaginator = client.get_paginator("list_types")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_appsync
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("appsync")
session_client = boto3.Session().client("appsync")
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-appsync-1.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9e2643344e544d29fce340c93e55cd690e2dc1bc5a7a8a35a9414e5f3732ac8 |
|
MD5 | 9c5063b443db97dd478e1e0ae13cd914 |
|
BLAKE2b-256 | 7bd5d7c3f086895b1bbf5c8879bb3064bb25c4fd9aed196b309c2e4c7954e0ec |
Hashes for mypy_boto3_appsync-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d178e363c46189c2160f05325832f9177192897389fe985ee240bebce74e2b96 |
|
MD5 | 6cf5c263dc18ff9cf6b75d8a0ab60807 |
|
BLAKE2b-256 | f79ac02f1aca35fabb7f435513ea885cb8381d9e03ebe8db26c5b9e35362cb67 |