Registry / type-stubs / mypy-boto3-devops-guru

mypy-boto3-devops-guru

JSON →
library1.43.0pypypi✓ verified 23d ago

mypy-boto3-devops-guru provides type annotations for the AWS boto3 DevOps Guru service, generated with mypy-boto3-builder. It enhances type checking for boto3 clients, resources, and various service-specific data structures. The current version is 1.42.3, and it follows a frequent release cadence, often aligning with new boto3 releases and updates to the mypy-boto3-builder.

pip install mypy-boto3-devops-guru
INSTALL
IMPORT
SIG · MYPY-BOTO3-DEVOPS-
M
mypy-boto3-devops-guru
type-stubspythonv1.43.0
Install
2.7s avg
Import
Disk
71MB
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 · 18.5MB
glibc
py 3.103.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.
fix
Upgrade 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.
fix
Ensure `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.
fix
When 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.
fix
Always 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.
Agent activity
23 hits · last 30 days
node
16
OpenAI (training)
2
Amazon
1
Resources
mypy-boto3-devops-guru — pip install mypy-boto3-devops-guru · libregistry