Type annotations for boto3.AppSync 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-appsync
Type annotations for boto3.AppSync 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 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.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cf7870c281266c0fc0b5abe2b914c8afb5382037b5fcffcbe743aa8b9d0ca98 |
|
MD5 | 79b736db6b4dd4e2ae3a0b79368edeb9 |
|
BLAKE2b-256 | 564ee878d7285d154b2ef40e4d8aaa1db7743b8bc6543a155247134cf7e4e7f2 |
Hashes for mypy_boto3_appsync-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 953a726b63c51439a03b29ced1edf46cc8c8888ac4100b8d15e9689f68e92e60 |
|
MD5 | de8c736de3d442d49e5577cb442e1bfa |
|
BLAKE2b-256 | 54881d9bb1557847f77e9d2f51406910986f19b9b4f4fb9d0bee866e4bbb2520 |