Registry / type-stubs / mypy-boto3-codepipeline

mypy-boto3-codepipeline

JSON →
library1.43.0pypypi✓ verified 23d ago

This library provides type annotations (stubs) for the `boto3` AWS CodePipeline client. It enables static type checking for `boto3` usage with tools like `mypy`, enhancing developer productivity and catching potential errors at compile time. Maintained by the `mypy-boto3-builder` project, it receives frequent updates to align with new `boto3` releases and `botocore` service definitions.

pip install mypy-boto3-codepipeline
INSTALL
IMPORT
SIG · MYPY-BOTO3-CODEPIP
M
mypy-boto3-codepipeline
type-stubspythonv1.43.0
Install
3.8s avg
Import
Disk
232MB
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 · 198.8MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 3.8s · import 0.000s · 267MB
232MB installed
● package 232MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CodePipelineClient
from mypy_boto3_codepipeline import CodePipelineClient
from mypy_boto3_codepipeline import CodePipelineClient

This quickstart demonstrates how to use `mypy-boto3-codepipeline` to add static type checking to your `boto3` CodePipeline client interactions. The `TYPE_CHECKING` guard ensures that the stub imports are only processed by type checkers like `mypy` and are not loaded during runtime, improving application startup performance.

import boto3 from typing import TYPE_CHECKING, List, Dict, Any # Guard type imports for runtime efficiency if TYPE_CHECKING: from mypy_boto3_codepipeline.client import CodePipelineClient from mypy_boto3_codepipeline.type_defs import ListPipelinesOutputTypeDef def get_codepipeline_pipelines() -> List[str]: # The actual runtime client from boto3 client: CodePipelineClient = boto3.client("codepipeline") # The type checker knows the methods available on 'client' response: ListPipelinesOutputTypeDef = client.list_pipelines() pipeline_names = [ p['name'] for p in response.get("pipelines", []) if 'name' in p and isinstance(p['name'], str) ] print(f"CodePipeline Pipelines: {pipeline_names}") return pipeline_names if __name__ == "__main__": # This example does not require specific credentials beyond default AWS configuration. # Ensure boto3 is configured (e.g., via AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, # or ~/.aws/credentials, or IAM roles). try: pipelines = get_codepipeline_pipelines() except Exception as e: print(f"Error fetching CodePipeline pipelines: {e}") print("Please ensure your AWS credentials and region are configured.")
Debug
Known issues
breakingPython 3.8 support was removed and packages migrated to PEP 561.
fix
Upgrade your Python environment to 3.9 or newer. Ensure your `mypy` configuration is up-to-date and correctly identifies installed PEP 561 stubs.
affects: mypy-boto3-builder 8.12.0 and all generated stub packages (including mypy-boto3-codepipeline) released after this version.
gotchaThis package provides *only* type annotations (stubs) for boto3.
fix
You must install the `boto3` library (e.g., `pip install boto3`) separately for your code to run at runtime. `mypy-boto3-codepipeline` does not include the runtime library.
affects: All versions
gotchaFor optimal type checking, align `mypy-boto3-codepipeline` with your `boto3` runtime version.
fix
While `mypy-boto3` stubs generally work with a range of `boto3` versions, minor API discrepancies might exist between highly mismatched versions. Keep both `boto3` and `mypy-boto3-codepipeline` updated to their latest compatible versions for the best experience.
affects: All versions
gotchaUse `if TYPE_CHECKING:` guards for stub imports to avoid runtime overhead.
fix
Wrap your `from mypy_boto3_codepipeline.client import ...` and `from mypy_boto3_codepipeline.type_defs import ...` imports within `if TYPE_CHECKING:` blocks. This ensures that the potentially large stub modules are only imported by type checkers and not during actual program execution, improving runtime performance.
affects: All versions
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredRuntime dependency for which these type stubs are provided.
mypyoptionalPrimary type checker used with these stubs.
Agent activity
21 hits · last 30 days
node
18
OpenAI (training)
1
Resources
mypy-boto3-codepipeline — pip install mypy-boto3-codepipeline · libregistry