Registry /
type-stubs / mypy-boto3-bcm-recommended-actions
Install & Compatibility
Where this runs
tested against v1.43.61 · 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.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 51.8MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.8s · import 0.000s · 52MB
50MB installed
● package 50MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
BillingAndCostManagementRecommendedActionsClient
✓ from mypy_boto3_bcm_recommended_actions.client import BillingAndCostManagementRecommendedActionsClient
✗ from boto3.client import BillingAndCostManagementRecommendedActions
The client type hint comes from the mypy-boto3 stub package, not directly from boto3.
Client
✓ from mypy_boto3_bcm_recommended_actions.client import BillingAndCostManagementRecommendedActionsClient
ServiceResource
✓ from mypy_boto3_bcm_recommended_actions.service_resource import BillingAndCostManagementRecommendedActionsServiceResource
This quickstart demonstrates how to initialize a `boto3` client for the Billing and Cost Management Recommended Actions service and annotate it with the `mypy-boto3` provided type, enabling static analysis of API calls.
import boto3
from mypy_boto3_bcm_recommended_actions.client import BillingAndCostManagementRecommendedActionsClient
# For demonstration, typically use AWS credentials configured externally
# via environment variables, ~/.aws/credentials, etc.
# This example assumes you have valid AWS credentials configured.
try:
session = boto3.Session(region_name="us-east-1")
client: BillingAndCostManagementRecommendedActionsClient = session.client(
"billing-cost-management-recommended-actions"
)
# Example: List resource budgeting recommendations (actual API call might vary)
# Note: This service's API details might not have common public list operations
# The example is illustrative for type checking.
# Consult AWS BCM Recommended Actions documentation for actual operations.
print("Attempting a dummy client call for type checking demonstration...")
# The BCM Recommended Actions service typically works with specific actions/recommendations.
# A simple call might not exist for generic 'list'.
# Let's simulate a call that would be type-checked if it existed.
# For real use, replace with an actual API method like 'get_recommendations'.
# response = client.get_recommendations(RecommendationType='SOME_TYPE') # Example
# print(response)
print("Client successfully initialized with type hints.")
print(f"Client type: {type(client)}")
except Exception as e:
print(f"An error occurred: {e}")
print("Please ensure 'boto3' is installed and AWS credentials are configured.")
Debug
Known issues
breakingPython 3.8 is no longer supported starting with `mypy-boto3-builder` version 8.12.0. All generated stub packages (including this one) now require Python 3.9 or newer.fixUpgrade your Python environment to 3.9 or higher.
affects: >=8.12.0 (builder), corresponding stub package versions
breakingTypeDef naming conventions changed in builder version 8.9.0. TypeDefs for packed method arguments use shorter names (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`). Conflicting TypeDef `Extra` postfixes were also moved.fixReview and update custom TypeDef aliases or direct usages to match the new naming conventions if you were relying on the old patterns.
affects: >=8.9.0 (builder), corresponding stub package versions
gotchaThis package provides *only* type annotations. You must have `boto3` installed alongside `mypy-boto3-bcm-recommended-actions` for your code to run.fixEnsure `pip install boto3 mypy-boto3-bcm-recommended-actions` is run.
affects: All versions
gotchaTo ensure correct type checking, the version of `mypy-boto3-bcm-recommended-actions` should ideally match or be very close to your installed `boto3` version. Significant mismatches can lead to incorrect type hints or missing attributes.fixRegularly update both `boto3` and its corresponding `mypy-boto3` stub packages. Consider using `pip-tools` or similar to manage dependencies.
affects: All versions
gotchaThe service name used in `boto3.client('SERVICE_NAME')` might differ slightly from the package name. For this service, use `billing-cost-management-recommended-actions` for the client initialization.fixAlways refer to the official `boto3` documentation or `mypy-boto3` examples for the correct service name string for `session.client()`.
affects: All versions
Upgrade
Version history
1.43.61latest on PyPI · released Jul 31, 2026
Audit
Dependencies
boto3requiredThis package provides type stubs for boto3; boto3 itself must be installed for runtime functionality.
typing-extensionsoptionalRequired for full type hint compatibility on Python versions older than 3.9, though often handled automatically by pip.