Registry /
type-stubs / mypy-boto3-workspaces-thin-client
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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.610s · 116.5MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 5.8s · import 0.572s · 114MB
114MB installed
● package 114MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
WorkSpacesThinClientClient
✓ from mypy_boto3_workspaces_thin_client.client import WorkSpacesThinClientClient
ListWorkspacesThinClientDevicesRequestRequestTypeDef
✓ from mypy_boto3_workspaces_thin_client.type_defs import ListWorkspacesThinClientDevicesRequestRequestTypeDef
Type definitions are typically imported from the 'type_defs' submodule.
This example demonstrates how to initialize a `WorkSpacesThinClientClient` with `boto3` and use type-hinted request parameters and client methods provided by `mypy-boto3-workspaces-thin-client`.
import boto3
from mypy_boto3_workspaces_thin_client.client import WorkSpacesThinClientClient
from mypy_boto3_workspaces_thin_client.type_defs import ListWorkspacesThinClientDevicesRequestRequestTypeDef
def list_thin_client_devices(
region_name: str,
max_results: int = 10,
next_token: str | None = None
) -> None:
"""Lists WorkSpaces Thin Client devices with type hints."""
# boto3.client returns a WorkSpacesThinClientClient when mypy-boto3-workspaces-thin-client is installed
client: WorkSpacesThinClientClient = boto3.client("workspaces-thin-client", region_name=region_name)
request_params: ListWorkspacesThinClientDevicesRequestRequestTypeDef = {
"maxResults": max_results,
}
if next_token:
request_params["nextToken"] = next_token
print(f"Listing devices in {region_name}...")
response = client.list_workspaces_thin_client_devices(**request_params)
devices = response.get("devices", [])
if devices:
for device in devices:
print(f" Device ID: {device.get('id')}, Name: {device.get('name', 'N/A')}")
else:
print(" No devices found.")
if "nextToken" in response:
print(f" Next Token: {response['nextToken']}")
# Example usage (requires AWS credentials configured, e.g., via AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY or ~/.aws/credentials)
if __name__ == "__main__":
# Replace 'us-east-1' with your desired AWS region
list_thin_client_devices("us-east-1")
Debug
Known issues
breakingPython 3.8 support has been removed. As of `mypy-boto3-builder` version 8.12.0 (which generated `mypy-boto3-workspaces-thin-client` 1.42.3), projects targeting Python 3.8 or older will need to use an earlier version of `mypy-boto3` or upgrade their Python environment.fixUpgrade to Python 3.9+ or pin `mypy-boto3-workspaces-thin-client` to a compatible older version (e.g., <1.42.0).
affects: >=1.42.0 (generated by mypy-boto3-builder 8.12.0 and later)
breaking`mypy-boto3` packages migrated to PEP 561 (namespace packages) with `mypy-boto3-builder` 8.12.0. This change in packaging structure might affect how some tools or environments discover these stubs, particularly in older or non-standard Python setups.fixEnsure your Python environment and type checker (like `mypy`) are up-to-date and correctly configured for PEP 561 compliant stub packages. If issues persist, refer to the `mypy-boto3-builder` documentation for troubleshooting.
affects: >=1.42.0 (generated by mypy-boto3-builder 8.12.0 and later)
gotchaThis package provides *only* type stubs. For your Python code to run and interact with AWS WorkSpaces Thin Client, you must also have the `boto3` library installed (`pip install boto3`).fixAlways install `boto3` alongside `mypy-boto3-workspaces-thin-client` in your project's runtime environment.
affects: All
gotchaTo effectively use these type stubs, you need a static type checker like `mypy`. Ensure `mypy` is installed and configured to run on your project, allowing it to discover and utilize the type hints provided by this package.fixInstall `mypy` (`pip install mypy`) and integrate it into your development workflow or CI/CD pipeline.
affects: All
breakingIn `mypy-boto3-builder` 8.9.0, type definition names for packed method arguments were shortened (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`), and conflicting `Extra` postfixes were moved (e.g., `CreateDistributionExtraRequestTypeDef` -> `CreateDistributionRequestExtraTypeDef`). Code directly referencing these old type definition names will break.fixUpdate your import statements and type annotations to reflect the new `TypeDef` naming conventions. Consult the `mypy-boto3` documentation for the specific service to find the updated names.
affects: >=1.39.0 (generated by mypy-boto3-builder 8.9.0 and later)
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides the runtime AWS SDK that these stubs type-check.
mypyoptionalThe primary static type checker designed to consume these stubs.