Registry / type-stubs / mypy-boto3-servicecatalog

mypy-boto3-servicecatalog

JSON →
library1.43.0pypypi✓ verified 23d ago

mypy-boto3-servicecatalog provides comprehensive type annotations for the `boto3` ServiceCatalog service, enhancing static analysis, autocompletion, and error detection for `boto3` code. It is currently at version 1.42.3 and is generated by the `mypy-boto3-builder` to align with `boto3` releases, ensuring up-to-date type definitions.

pip install mypy-boto3-servicecatalog
INSTALL
IMPORT
SIG · MYPY-BOTO3-SERVICE
M
mypy-boto3-servicecatalog
type-stubspythonv1.43.0
Install
3.5s avg
Import
Disk
18MB
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 · 20.1MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 3.5s · import 0.000s · 21MB
18MB installed
● package 18MB
Code
Verified usage

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

ServiceCatalogClient
from mypy_boto3_servicecatalog import ServiceCatalogClient
from mypy_boto3_servicecatalog import ServiceCatalogClient
Client
from mypy_boto3_servicecatalog.client import ServiceCatalogClient
from mypy_boto3_servicecatalog import ServiceCatalogClient
ServiceCatalogServiceResource
from mypy_boto3_servicecatalog import ServiceCatalogServiceResource
from mypy_boto3_servicecatalog import ServiceCatalogClient

This quickstart demonstrates how to use `mypy-boto3-servicecatalog` to add type hints to a `boto3` ServiceCatalog client. It defines a function that lists Service Catalog products, explicitly typing the client and response objects to leverage static analysis. The `TYPE_CHECKING` block ensures the stubs are only loaded during static analysis, not at runtime.

import boto3 from typing import TYPE_CHECKING if TYPE_CHECKING: from mypy_boto3_servicecatalog.client import ServiceCatalogClient from mypy_boto3_servicecatalog.type_defs import SearchProductsOutputTypeDef def list_servicecatalog_products() -> list[str]: """Lists Service Catalog products with type hints.""" # boto3 client is dynamically typed at runtime, stubs provide static types client: ServiceCatalogClient = boto3.client("servicecatalog") response: SearchProductsOutputTypeDef = client.search_products() product_names = [] for product_view in response.get('ProductViewAggregations', []): if 'ProductViewSummary' in product_view and 'Name' in product_view['ProductViewSummary']: product_names.append(product_view['ProductViewSummary']['Name']) return product_names if __name__ == "__main__": print("Attempting to list Service Catalog products (requires AWS credentials)...") try: products = list_servicecatalog_products() if products: print(f"Found {len(products)} products:") for product in products: print(f"- {product}") else: print("No Service Catalog products found.") except Exception as e: print(f"Error listing products: {e}")
Debug
Known issues
breakingPython 3.8 support was removed for all `mypy-boto3` packages (including `mypy-boto3-servicecatalog`) starting with `mypy-boto3-builder` version 8.12.0. Projects using Python 3.8 or older will need to upgrade their Python version.
fix
Upgrade your Python environment to 3.9 or newer.
affects: mypy-boto3-builder >= 8.12.0
breakingIn `mypy-boto3-builder` version 8.9.0, some `TypeDef` names for method arguments were shortened (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`). Conflicting `Extra` postfixes were also moved to the end. This may require updating explicit `TypeDef` imports.
fix
Review and update explicit `TypeDef` imports and usage according to the new naming conventions.
affects: mypy-boto3-builder >= 8.9.0
gotcha`mypy-boto3-servicecatalog` provides type stubs for `boto3` and should not be used as a runtime dependency or for importing classes directly for runtime execution. It is intended solely for static type checking.
fix
Ensure you are installing and using `boto3` for actual runtime operations. The `mypy-boto3-servicecatalog` package is only for type checkers (like mypy, pyright) and IDEs.
affects: All versions
gotchaWhen using `mypy-boto3` stubs with Pylint, it might complain about undefined variables within `if TYPE_CHECKING:` blocks.
fix
To fix this, you can set all typed variables to `object` in the `else` block of your `TYPE_CHECKING` conditional, or disable the specific Pylint warning.
affects: All versions
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3optionalThis package provides type stubs for `boto3`. `boto3` itself is a runtime dependency for the actual AWS SDK operations.
Agent activity
23 hits · last 30 days
node
20
Amazon
1
OpenAI (training)
1
Resources
mypy-boto3-servicecatalog — pip install mypy-boto3-servicecatalog · libregistry