Registry / type-stubs / mypy-boto3-pcs

mypy-boto3-pcs

JSON →
library1.43.54pypypi✓ verified 22d ago

mypy-boto3-pcs provides type annotations for the `boto3` ParallelComputingService, enhancing code completion and static analysis with tools like MyPy. It is part of the `mypy-boto3` project, which auto-generates type stubs for all `boto3` services and is actively maintained with frequent updates mirroring `boto3` releases.

pip install mypy-boto3-pcs boto3
INSTALL
IMPORT
SIG · MYPY-BOTO3-PCS
M
mypy-boto3-pcs
type-stubspythonv1.43.54
Install
3.9s avg
Import
590ms
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.54 · 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.95 runs
installs and imports cleanly · install 0.0s · import 0.614s · 51.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.9s · import 0.566s · 52MB
50MB installed
● package 50MB
Code
Verified usage

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

ParallelComputingServiceClient
from mypy_boto3_pcs.client import ParallelComputingServiceClient
Import the client type for the ParallelComputingService for type hinting boto3 clients.
ParallelComputingServiceClient
import boto3 from mypy_boto3_pcs.client import ParallelComputingServiceClient def get_pcs_client() -> ParallelComputingServiceClient: return boto3.client('pcs')
Type hint the boto3 client creation. Direct import of the client type is for annotation, not runtime instantiation.

This quickstart demonstrates how to obtain a type-hinted `boto3` client for the ParallelComputingService using `mypy-boto3-pcs`. It emphasizes the need to install both `boto3` and the type stubs, and how to correctly annotate the client for static analysis.

import boto3 from mypy_boto3_pcs.client import ParallelComputingServiceClient from os import environ # Ensure boto3 is installed: pip install boto3 mypy-boto3-pcs def get_pcs_client() -> ParallelComputingServiceClient: """Returns a type-hinted ParallelComputingService client.""" # Boto3 client creation with type hint client: ParallelComputingServiceClient = boto3.client( 'pcs', region_name=environ.get('AWS_REGION', 'us-east-1'), aws_access_key_id=environ.get('AWS_ACCESS_KEY_ID', ''), aws_secret_access_key=environ.get('AWS_SECRET_ACCESS_KEY', '') ) return client if __name__ == '__main__': pcs_client = get_pcs_client() # Now `pcs_client` has type hints for ParallelComputingService methods print(f"Client type: {type(pcs_client)}") # Example of a method call (replace with actual PCS method if needed) # This specific service 'pcs' is less common for simple public examples. # print(pcs_client.list_resources())
Debug
Known issues
breakingSupport for Python 3.8 has been removed in `mypy-boto3-builder` version 8.12.0. All generated `mypy-boto3` packages, including `mypy-boto3-pcs`, now require Python 3.9 or higher.
fix
Upgrade your Python environment to 3.9 or newer.
affects: >=8.12.0 of mypy-boto3-builder (which generates mypy-boto3-pcs 1.42.x and higher)
breakingIn `mypy-boto3-builder` version 8.9.0, TypeDef names for packed method arguments were shortened (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`). This can cause type-checking errors if you were explicitly referencing the older, longer TypeDef names.
fix
Update your type annotations to use the new, shorter TypeDef names. Refer to the specific service documentation for the correct TypeDef names.
affects: >=8.9.0 of mypy-boto3-builder
gotcha`mypy-boto3-pcs` only provides type stubs, not the `boto3` library itself. You *must* install `boto3` separately for your code to function at runtime. The type stubs are solely for static analysis.
fix
Ensure `boto3` is installed in your environment: `pip install boto3`.
affects: all
gotchaWhile direct installation like `pip install mypy-boto3-pcs` works, for comprehensive `boto3` type-hinting across multiple services, the `boto3-stubs` package with extras (e.g., `pip install 'boto3-stubs[full]'` or `pip install 'boto3-stubs[pcs]'`) is often recommended as the primary entry point for type annotations. This ensures consistency and proper integration for all services you use.
fix
Consider `pip install 'boto3-stubs[pcs]'` instead of or in addition to `mypy-boto3-pcs` for better integration, especially if using multiple `boto3` services.
affects: all
deprecatedSome AWS service names or their corresponding `mypy-boto3` stub packages may be deprecated or renamed over time, reflecting changes in the AWS SDK. For example, the `sms-voice` service was removed in `mypy-boto3-builder` 8.11.0, with `pinpoint-sms-voice` as its replacement.
fix
Always check the official `mypy-boto3` documentation or AWS service documentation for the latest service names and recommended alternatives if you encounter `ModuleNotFoundError` for a service stub.
affects: >=8.11.0 of mypy-boto3-builder
Upgrade
Version history
1.43.54latest on PyPI · released Jul 22, 2026
Audit
Dependencies
boto3requiredProvides the AWS SDK functionality for which these are type stubs.
pythonrequiredMinimum required Python version for all mypy-boto3 packages.
Agent activity
23 hits · last 30 days
node
20
OpenAI (training)
1
Resources
mypy-boto3-pcs — pip install mypy-boto3-pcs · libregistry