Registry / type-stubs / mypy-boto3-codecatalyst

mypy-boto3-codecatalyst

JSON →
library1.43.0pypypi✓ verified 22d ago

mypy-boto3-codecatalyst provides comprehensive type annotations for the AWS CodeCatalyst service within the `boto3` library. It enables static type checking with tools like MyPy, Pyright, and enhances IDE features like auto-completion and error detection for `boto3.client('codecatalyst')`. The library is actively maintained and generated with `mypy-boto3-builder`, following a frequent release cadence to align with `boto3` updates.

pip install mypy-boto3-codecatalyst boto3
INSTALL
IMPORT
SIG · MYPY-BOTO3-CODECAT
M
mypy-boto3-codecatalyst
type-stubspythonv1.43.0
Install
4.4s avg
Import
580ms
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.910 runs
installs and imports cleanly · install 0.0s · import 0.606s · 52MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 4.4s · import 0.554s · 53MB
50MB installed
● package 50MB
Code
Verified usage

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

CodeCatalystClient
from mypy_boto3_codecatalyst import CodeCatalystClient
from boto3.client import CodeCatalystClient
The type annotation for the client comes from the mypy-boto3 stubs, not directly from the boto3 client module itself.
ListDevEnvironmentsResponseTypeDef
from mypy_boto3_codecatalyst.type_defs import ListDevEnvironmentsResponseTypeDef
Type definitions for API call responses are available in the `type_defs` submodule.

This quickstart demonstrates how to obtain a type-annotated `CodeCatalystClient` using `mypy-boto3-codecatalyst`. This enables full type checking and IDE assistance for all CodeCatalyst service operations.

import boto3 from boto3.session import Session from mypy_boto3_codecatalyst import CodeCatalystClient import os # Ensure AWS credentials are configured (e.g., via environment variables or ~/.aws/credentials) # For a runnable example, we'll simulate an empty config if not set # Explicitly set up a session for clarity, though boto3.client() uses a default session session = Session( aws_access_key_id=os.environ.get('AWS_ACCESS_KEY_ID', 'DUMMY_KEY'), aws_secret_access_key=os.environ.get('AWS_SECRET_ACCESS_KEY', 'DUMMY_SECRET'), region_name=os.environ.get('AWS_REGION', 'us-east-1') ) # Get a typed CodeCatalyst client client: CodeCatalystClient = session.client("codecatalyst") # Now, the 'client' object is fully type-checked by MyPy and provides IDE auto-completion # For example, calling a method with incorrect arguments will be flagged. # try: # response = client.list_dev_environments(InvalidArg=True) # This would be a type error # except Exception as e: # print(f"Expected error: {e}") response = client.list_dev_environments() print(f"Successfully called list_dev_environments. Found {len(response.get('items', []))} dev environments.") # Access type-safe response data # if response['items']: # first_env_name = response['items'][0]['devEnvironmentName']
Debug
Known issues
breakingSupport for Python 3.8 has been removed in `mypy-boto3-builder` version 8.12.0 (and consequently for packages built with it). Projects using this library must upgrade to Python 3.9 or newer.
fix
Upgrade your Python environment to 3.9 or a later version.
affects: >=8.12.0 (builder), >=1.42.0 (stubs)
breakingTypeDef names for method arguments and conflicting TypeDefs were renamed in `mypy-boto3-builder` version 8.9.0. Specifically, `RequestRequestTypeDef` was shortened to `RequestTypeDef` and `ExtraRequestTypeDef` was changed to `RequestExtraTypeDef`.
fix
Review and update TypeDef imports and usage in your codebase to reflect the new naming conventions. Consult the `mypy-boto3-builder` release notes for exact changes if upgrading from older versions.
affects: >=8.9.0 (builder)
gotchaThis package provides type stubs only; `boto3` itself must be installed separately for the code to run. The type stubs are compile-time dependencies, while `boto3` is a runtime dependency.
fix
Ensure `boto3` is installed alongside `mypy-boto3-codecatalyst` using `pip install boto3 mypy-boto3-codecatalyst`.
affects: All versions
gotchaWhile direct installation of `mypy-boto3-codecatalyst` works, the recommended approach for `boto3` users is to install `boto3-stubs` with the service extra (e.g., `pip install 'boto3-stubs[codecatalyst]'`). This method often provides better overall type inference and compatibility across services by leveraging `boto3-stubs`'s session overloads.
fix
Prefer `pip install 'boto3-stubs[codecatalyst]'` over `pip install mypy-boto3-codecatalyst` for optimal type checking integration within a `boto3` environment.
affects: All versions
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides the core AWS SDK functionality for which these are type stubs. Required for runtime operations.
Agent activity
15 hits · last 30 days
node
12
OpenAI (training)
1
Resources
mypy-boto3-codecatalyst — pip install mypy-boto3-codecatalyst · libregistry