Type annotations for boto3.AppSync 1.13.26 service, generated by mypy-boto3-buider 2.0.2
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.2.
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]
# update installed packages index for automated type discovery
python -m mypy_boto3
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")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_appsync
and other installed services.
# Run this command when you add or remove service packages
python -m mypy_boto3
Generated index provides overloads for boto3.client
and boto3.service
,
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 carefullyVSCode
does not currently support function overloads
Also, generated index allows you to import types from mypy_boto3
:
# you can replace imports
import mypy_boto3_appsync as appsync
from mypy_boto3_appsync import AppSyncClient
# with these
from mypy_boto3 import appsync
from mypy_boto3.appsync import AppSyncClient
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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33a30801447b5075e44f986596c27041c235574519d5cb2f50f6130a25ce9850 |
|
MD5 | 612054b7cf113e5cbd35fe972c5f0370 |
|
BLAKE2b-256 | cc242604222736f3949712fafe2c37e6fc500159ec1ee0f514a22967aa620f76 |
Hashes for mypy_boto3_appsync-1.13.26.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50493cdf58538691ca3a2f7d9bb645c9f48acf1cb97a585e79caf17433775494 |
|
MD5 | 8b25492eb6ef0fe08e72c1d35e27cc3f |
|
BLAKE2b-256 | 1b7ae2883dbd618ba054b2f44c436cb59da40ad84507e404a09e53b6bc038257 |