Registry / type-stubs / mypy-boto3-dax

mypy-boto3-dax

JSON →
library1.43.0pypypi✓ verified 24d ago

mypy-boto3-dax provides type annotations for the AWS DynamoDB Accelerator (DAX) service, compatible with `boto3`. It enhances development with static type checking, autocomplete, and improved IDE support for `boto3` DAX clients. This package is version `1.42.3`, generated by `mypy-boto3-builder` `8.12.0`, which periodically releases updates to align with new `boto3` versions and address type-related issues.

pip install mypy-boto3-dax boto3
INSTALL
IMPORT
SIG · MYPY-BOTO3-DAX
M
mypy-boto3-dax
type-stubspythonv1.43.0
Install
3.9s avg
Import
588ms
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.606s · 51.9MB
glibc
py 3.103.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.
fix
Upgrade 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.
Agent activity
22 hits · last 30 days
node
18
OpenAI (training)
1
Resources
mypy-boto3-dax — pip install mypy-boto3-dax · libregistry