Type annotations for boto3.AppSync 1.13.24 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-appsync
Type annotations for boto3.AppSync 1.13.24 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.24.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22e4223f38678e5cb55d9c359624d5f0007714293bcea1e1c0aa36106f599583 |
|
MD5 | 0a8d012f7c62f1611766cea7b7382170 |
|
BLAKE2b-256 | 6af63882b75f37e930158ceaf79df49d052a89891f63cd337e84fa0392180be9 |
Hashes for mypy_boto3_appsync-1.13.24.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 702e5c0d74ebd73276c9c31ae08124d1525cf3598e2b93c8303e900ff16a2215 |
|
MD5 | 81eb9387eedc74fa1a1f9b5850829624 |
|
BLAKE2b-256 | e960bf3020e7febe4a0cad357ad98b96d599aebaf559eceef9722adcf6473dc8 |