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.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.5MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 2.7s · import 0.000s · 19MB
71MB installed
● package 71MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
DevOpsGuruClient
✓ from mypy_boto3_devops_guru import DevOpsGuruClient
✗ from mypy_boto3_devops_guru import DevOpsGuruClient
Demonstrates how to import and use the `DevOpsGuruClient` type stub with a boto3 client, and how to use a specific TypedDict for a response. This allows static type checkers like MyPy to validate client calls and response structures.
import boto3
from mypy_boto3_devops_guru import DevOpsGuruClient
from mypy_boto3_devops_guru.type_defs import DescribeAccountHealthResponseTypeDef
# Instantiate the boto3 client, typed with mypy-boto3 stubs
client: DevOpsGuruClient = boto3.client(
"devops-guru",
aws_access_key_id=os.environ.get('AWS_ACCESS_KEY_ID', ''),
aws_secret_access_key=os.environ.get('AWS_SECRET_ACCESS_KEY', ''),
region_name=os.environ.get('AWS_REGION', 'us-east-1')
)
try:
# Call a service method
response: DescribeAccountHealthResponseTypeDef = client.describe_account_health()
print(f"Account health details: {response}")
except Exception as e:
print(f"Error describing account health: {e}")
Debug
Known issues
breakingStarting with `mypy-boto3-builder` version 8.12.0 (which generated current stubs), Python 3.8 support was removed for all generated `mypy-boto3-*` packages. Ensure your project uses Python 3.9 or newer.fixUpgrade your Python environment to 3.9 or later. If you must use Python 3.8, pin to an older `mypy-boto3-devops-guru` version (e.g., `<1.42.0`) and its corresponding `mypy-boto3-builder` version.
affects: mypy-boto3-builder >=8.12.0, mypy-boto3-devops-guru >=1.42.x
gotchaThese packages provide only type stubs. You must install `boto3` (and optionally `botocore`) separately for the runtime functionality. Not installing `boto3` will lead to `ModuleNotFoundError` at runtime, even if type checks pass.fixEnsure `pip install boto3` is part of your project's dependency setup.
affects: All versions
gotchaMismatched versions between `boto3` and `mypy-boto3-*` stubs can lead to `mypy` errors or incorrect type hints. The stubs are generated based on specific `boto3` service definitions.fixWhen updating `boto3`, also update all `mypy-boto3-*` stub packages to their latest compatible versions. Generally, `pip install --upgrade boto3 mypy-boto3-devops-guru` is recommended.
affects: All versions
gotchaAWS service names can change over time, or have variations (e.g., `sms-voice` vs. `pinpoint-sms-voice`). This can lead to `ModuleNotFoundError` for the stub package or `botocore.exceptions.ClientError` at runtime if the service name in `boto3.client()` is incorrect.fixAlways verify the correct service name in the `boto3` documentation. If a service name changes, update the stub package import path and the client instantiation accordingly.
affects: All versions
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredThis package provides type stubs for boto3; boto3 itself is required at runtime.
typing-extensionsoptionalMay be required for older Python versions or specific type features.