Type annotations for boto3.AppSync 1.13.26 service, generated by mypy-boto3-buider 2.0.3
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.3.
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3eceeb611bab32474c150e1b1a8365b814a1add25dc6445dce9e481dd6a8ca5d |
|
MD5 | 7fb24c5167cb0b03c8a0f725acd64d63 |
|
BLAKE2b-256 | bf9562a667811c96ac67a28b4e3f9537463fab819e5a080882640a22e3f1ece1 |
Hashes for mypy_boto3_appsync-1.13.26.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59911fd1c07fcfb4b8aa2e75b650b5bc09eeca282bb820a7b3adf8ab7aa262a4 |
|
MD5 | ea3c4baec3c04e7137803da846398fc9 |
|
BLAKE2b-256 | 905aa22cab4a2509bce34023f30dde7e0911e868e4eddb44ac276dc00dec90b7 |