Install & Compatibility
Where this runs
tested against v1.43.82 · 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 1.8s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
CodeDeployClient
✓ from mypy_boto3_codedeploy import CodeDeployClient
✗ from mypy_boto3_codedeploy import CodeDeployClient
This quickstart demonstrates how to get a type-hinted CodeDeploy client and use it to list applications. It includes explicit type annotations for `CodeDeployClient` and a response `TypeDef` to leverage the type stubs effectively.
import boto3
from typing import TYPE_CHECKING
from os import environ
if TYPE_CHECKING:
from mypy_boto3_codedeploy.client import CodeDeployClient
from mypy_boto3_codedeploy.type_defs import ListApplicationsOutputTypeDef
def get_codedeploy_client() -> CodeDeployClient:
"""Returns a type-hinted CodeDeploy client."""
session = boto3.session.Session(
aws_access_key_id=environ.get('AWS_ACCESS_KEY_ID', ''),
aws_secret_access_key=environ.get('AWS_SECRET_ACCESS_KEY', ''),
aws_session_token=environ.get('AWS_SESSION_TOKEN', ''),
region_name=environ.get('AWS_REGION', 'us-east-1')
)
return session.client("codedeploy")
def list_codedeploy_applications():
client: CodeDeployClient = get_codedeploy_client()
response: ListApplicationsOutputTypeDef = client.list_applications()
print("CodeDeploy Applications:")
for app_name in response.get("applications", []):
print(f"- {app_name}")
if __name__ == "__main__":
list_codedeploy_applications()
Debug
Known issues
breakingPython 3.8 support was removed starting with `mypy-boto3-builder` version 8.12.0 and affects all generated `mypy-boto3-*` packages, including `mypy-boto3-codedeploy`.fixUpgrade your Python environment to 3.9 or higher. The `requires_python` metadata is `^3.9`.
affects: mypy-boto3-builder >= 8.12.0, mypy-boto3-codedeploy >= 1.42.0
breakingIn `mypy-boto3-builder` version 8.9.0, there were breaking changes to TypeDef naming conventions. Specifically, `TypeDefs` for packed method arguments use shorter names (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`), and conflicting `Extra` postfixes moved to the end (e.g., `CreateDistributionExtraRequestTypeDef` became `CreateDistributionRequestExtraTypeDef`).fixReview and update `TypeDef` import paths and usage in your codebase to reflect the new naming conventions. Consult the specific service's `type_defs.pyi` for accurate names.
affects: mypy-boto3-builder >= 8.9.0, mypy-boto3-codedeploy >= 1.39.0
deprecatedThe standalone `mypy-boto3` package (e.g., `pip install mypy-boto3`) is considered legacy. Users are encouraged to install service-specific packages like `mypy-boto3-codedeploy` directly, or use the `boto3-stubs` package with service-specific extras (`pip install 'boto3-stubs[codedeploy]'`).fixMigrate from `mypy-boto3` to either standalone `mypy-boto3-codedeploy` or `boto3-stubs[codedeploy]` for better modularity and future compatibility.
affects: mypy-boto3-builder >= 8.9.0
gotchaWhen using PyCharm, performance issues with `Literal` overloads have been reported (PY-40997). This can lead to slow IDE performance when using full `boto3-stubs` packages.fixIf experiencing performance issues in PyCharm, consider using `boto3-stubs-lite` (e.g., `pip install 'boto3-stubs-lite[codedeploy]'`) which requires explicit type annotations but can be more RAM-friendly until the PyCharm issue is resolved.
affects: All versions
Upgrade
Version history
1.43.82latest on PyPI · released Aug 27, 2026
Audit
Dependencies
boto3requiredProvides the AWS SDK functionality that these type stubs annotate.
mypyoptionalRequired for static type checking using these annotations.
typing-extensionsoptionalMay be required for full feature support on Python versions < 3.10, particularly for `NotRequired` and `TypeAlias`.