Registry / type-stubs / mypy-boto3-appsync

mypy-boto3-appsync

JSON →
library1.43.0pypypi✓ verified 23d ago

mypy-boto3-appsync provides official type annotations for the `boto3` AppSync client, generated by `mypy-boto3-builder`. It enhances development with static type checking for AWS SDK operations related to AppSync, helping catch errors before runtime. The current version is 1.42.6, and releases are frequent, typically in sync with `boto3` updates and `mypy-boto3-builder` enhancements.

pip install boto3 mypy-boto3-appsync
INSTALL
IMPORT
SIG · MYPY-BOTO3-APPSYNC
M
mypy-boto3-appsync
type-stubspythonv1.43.0
Install
3.9s avg
Import
636ms
Disk
50MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.43.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.668s · 52.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.9s · import 0.604s · 53MB
50MB installed
● package 50MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AppSyncClient
from mypy_boto3_appsync.client import AppSyncClient
from boto3.client import AppSyncClient
boto3 itself does not export type hints directly this way; use the mypy-boto3 stub package.
ListGraphqlApisResponseTypeDef
from mypy_boto3_appsync.type_defs import ListGraphqlApisResponseTypeDef
from mypy_boto3_appsync.type_defs import ListGraphQLApisResponseTypeDef
Type definitions often follow specific casing conventions (e.g., GraphQL -> Graphql).

This quickstart demonstrates how to import and use the `AppSyncClient` type annotation with `boto3`. It shows how to correctly type your `boto3` client instance and use a type definition for a response object, ensuring type safety for your AWS AppSync operations. Remember to have AWS credentials configured for actual execution.

import boto3 from mypy_boto3_appsync.client import AppSyncClient from mypy_boto3_appsync.type_defs import ListGraphqlApisResponseTypeDef # Instantiate the boto3 client with type annotation client: AppSyncClient = boto3.client("appsync") try: # Example: List GraphQL APIs (requires appropriate AWS credentials) response: ListGraphqlApisResponseTypeDef = client.list_graphql_apis() print("Successfully listed GraphQL APIs:") for api in response.get("graphqlApis", []): print(f" - {api.get('name')} (API ID: {api.get('apiId')})") except client.exceptions.UnauthorizedException as e: print(f"Authentication error: {e}. Make sure your AWS credentials are configured.") except Exception as e: print(f"An error occurred: {e}")
Debug
Known issues
breakingPython 3.8 support was removed for all `mypy-boto3` packages. Projects targeting Python 3.8 will need to upgrade to Python 3.9 or newer.
fix
Upgrade your project's Python version to 3.9 or later. Consider using older `mypy-boto3` versions if 3.8 support is critical and you cannot upgrade Python.
affects: >=8.12.0
breaking`mypy-boto3` packages migrated to PEP 561. While this generally improves compatibility, specific `mypy` configurations (e.g., `MYPYPATH` usage) or older `mypy` versions might need adjustment.
fix
Ensure you are using a recent version of `mypy`. In most cases, simply installing the package should make stubs discoverable without special `mypy` configuration. Review `mypy` documentation if issues arise.
affects: >=8.12.0
breakingTypeDef names were refactored for brevity and consistency. For example, `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`. Conflicting TypeDef names had their `Extra` postfix moved.
fix
Update your code to use the new, shorter TypeDef names. Review your `mypy` errors for specific naming changes in the services you use.
affects: >=8.9.0
gotchaThis package only provides type hints for `boto3`. You must install `boto3` itself to have the runtime functionality.
fix
Always install `boto3` (e.g., `pip install boto3`) alongside your `mypy-boto3-*` packages.
affects: all
gotchaThe `mypy-boto3` ecosystem moved from a monolithic `mypy-boto3` package to granular `boto3-stubs-*` (e.g., `mypy-boto3-appsync`). Legacy `mypy-boto3` is no longer generated with the current builder.
fix
If you were previously using a single `mypy-boto3` package for all services, migrate to installing individual service stub packages like `mypy-boto3-appsync`.
affects: >=8.9.0
gotchaAWS service names can change, leading to updated package names for `mypy-boto3` stubs. For example, `sms-voice` was deprecated in favor of `pinpoint-sms-voice`.
fix
Always verify the correct package name for the specific AWS service you need. Check the `mypy-boto3` builder's documentation or PyPI for the latest package names.
affects: all
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredmypy-boto3-appsync provides type stubs for boto3's AppSync client; boto3 itself is required at runtime.
Agent activity
26 hits · last 30 days
node
24
OpenAI (training)
1
Resources
mypy-boto3-appsync — pip install mypy-boto3-appsync · libregistry