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.606s · 51.9MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.9s · import 0.570s · 52MB
50MB installed
● package 50MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
DAXClient
✓ from mypy_boto3_dax.client import DAXClient
Import the typed client for DAX service.
DescribeClustersResponseTypeDef
✓ from mypy_boto3_dax.type_defs import DescribeClustersResponseTypeDef
Import specific TypedDicts for response shapes.
This quickstart demonstrates how to initialize a `boto3` DAX client and use its methods with type annotations provided by `mypy-boto3-dax`. Explicit type hints for the client and response are shown for clarity, though modern IDEs and `mypy` can often infer these implicitly with `mypy-boto3-dax` installed.
import boto3
from mypy_boto3_dax.client import DAXClient
from mypy_boto3_dax.type_defs import DescribeClustersResponseTypeDef
def get_dax_clusters() -> DescribeClustersResponseTypeDef:
# boto3.client is implicitly typed by mypy-boto3-dax if installed
# For explicit typing, use:
client: DAXClient = boto3.client('dax')
response: DescribeClustersResponseTypeDef = client.describe_clusters(
MaxResults=5
)
return response
if __name__ == '__main__':
# Ensure AWS credentials are configured (e.g., via environment variables or ~/.aws/credentials)
try:
clusters_info = get_dax_clusters()
print(f"Found {len(clusters_info['Clusters'])} DAX clusters.")
for cluster in clusters_info['Clusters']:
print(f" - Cluster Name: {cluster['ClusterName']}, Status: {cluster['Status']}")
except Exception as e:
print(f"Error fetching DAX clusters: {e}")
Debug
Known issues
breakingSupport for Python 3.8 has been removed in `mypy-boto3-builder` version 8.12.0. Users on Python 3.8 must upgrade their Python version to 3.9 or higher to use the latest `mypy-boto3-dax` stubs.fixUpgrade Python to 3.9 or newer.
affects: >=8.12.0 (builder)
breakingType definition naming conventions changed in `mypy-boto3-builder` 8.9.0, leading to shorter names for packed method arguments (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`). This may require updates to explicit type hints in existing code.
gotcha`mypy-boto3-dax` provides only type annotations; `boto3` itself must be installed and correctly configured with AWS credentials for the code to run at runtime.
gotchaWhile often implicitly handled by IDEs, explicit type annotations (e.g., `client: DAXClient = boto3.client('dax')`) are recommended for optimal code completion and static analysis, especially when using `mypy-boto3-lite` or older IDE versions.
gotchaPyCharm users might experience performance issues due to its handling of `Literal` overloads. Using `types-boto3-lite` (if available for DAX) or being mindful of explicit typing can mitigate this.
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides the AWS SDK for Python; mypy-boto3-dax provides type stubs for it.
pythonrequiredRequires Python 3.9 or higher.