Registry / type-stubs / mypy-boto3-iottwinmaker

mypy-boto3-iottwinmaker

JSON →
library1.43.0pypypi✓ verified 22d ago

mypy-boto3-iottwinmaker provides high-quality type annotations for the `boto3` AWS IoTTwinMaker service client. It ensures static type checking with tools like MyPy, helping developers catch errors early and improve code readability for AWS API interactions. The current version is 1.42.3, and it's updated frequently to align with new `boto3` releases and `mypy-boto3-builder` improvements.

pip install mypy-boto3-iottwinmaker
INSTALL
IMPORT
SIG · MYPY-BOTO3-IOTTWIN
M
mypy-boto3-iottwinmaker
type-stubspythonv1.43.0
Install
3.3s avg
Import
Disk
18MB
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.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.8MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 3.3s · import 0.000s · 20MB
18MB installed
● package 18MB
Code
Verified usage

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

IoTTwinMakerClient
from mypy_boto3_iottwinmaker import IoTTwinMakerClient
from mypy_boto3_iottwinmaker import IoTTwinMakerClient

This quickstart demonstrates how to initialize a type-hinted IoTTwinMaker client and use it to list workspaces. It leverages the `IoTTwinMakerClient` type from `mypy-boto3-iottwinmaker` for improved type checking.

import boto3 import os from mypy_boto3_iottwinmaker import IoTTwinMakerClient from mypy_boto3_iottwinmaker.type_defs import ListWorkspacesResponseTypeDef # Initialize the IoTTwinMaker client with type annotations client: IoTTwinMakerClient = boto3.client("iottwinmaker") print("Listing IoTTwinMaker workspaces:") try: # Use the client with type-checked methods and type definitions response: ListWorkspacesResponseTypeDef = client.list_workspaces() workspaces = response.get("workspaceSummaries", []) if workspaces: for ws in workspaces: print(f"- {ws.get('workspaceId')} (Status: {ws.get('status', {}).get('state')})") else: print("No IoTTwinMaker workspaces found in this AWS account/region.") except Exception as e: print(f"An error occurred while listing workspaces: {e}") print("Please ensure you have configured AWS credentials and the IoTTwinMaker service is available in your region.")
Debug
Known issues
breakingPython 3.8 support has been removed for all `mypy-boto3-*` packages generated by `mypy-boto3-builder` version 8.12.0 and later. If you are using Python 3.8, you must pin to an older version of `mypy-boto3-iottwinmaker`.
fix
Upgrade your Python environment to 3.9 or higher. If you must use Python 3.8, pin `mypy-boto3-iottwinmaker` to a version compatible with `mypy-boto3-builder < 8.12.0` (e.g., `mypy-boto3-iottwinmaker==1.41.0`).
affects: >=1.42.3
gotchaFor optimal type checking, your `mypy-boto3-iottwinmaker` package version should closely match your `boto3` runtime version (specifically, the minor version, e.g., `boto3==1.42.x` with `mypy-boto3-iottwinmaker==1.42.y`). Significant mismatches can lead to incorrect or missing type hints.
fix
Always upgrade `boto3` and `mypy-boto3-iottwinmaker` (or `boto3-stubs`) in tandem. Use a tool like `pip-tools` to manage dependencies.
affects: All
gotchaWhile `mypy-boto3-iottwinmaker` provides stubs for a specific service, the recommended approach for complete `boto3` stubs is to install `boto3-stubs` with service extras (e.g., `pip install boto3-stubs[iottwinmaker]`). Installing both `boto3-stubs` and individual `mypy-boto3-*` packages can lead to conflicts or redundant stubs.
fix
Prefer `pip install boto3-stubs` with specific service extras. Only install individual `mypy-boto3-*` packages if you require granular control over stub versions for specific services, or if `boto3-stubs` does not meet your needs.
affects: All
breakingType definition names for packed method arguments were shortened and conflicting `Extra` postfixes were moved to the end. For example, `CreateDistributionRequestRequestTypeDef` might become `CreateDistributionRequestTypeDef`. This affects code that explicitly imports and uses these `TypeDef`s.
fix
Review your code for `TypeDef` imports and usage, and update the names according to the new conventions. Consult the `mypy-boto3-builder` release notes or package's `type_defs` submodule for specific changes.
affects: >=1.40.0 (versions generated by mypy-boto3-builder 8.9.0 or later)
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides the runtime functionality for the AWS SDK for Python, which these stubs type-check.
Agent activity
14 hits · last 30 days
node
12
OpenAI (training)
1
Resources
mypy-boto3-iottwinmaker — pip install mypy-boto3-iottwinmaker · libregistry