Registry / type-stubs / mypy-boto3-bcm-recommended-actions

mypy-boto3-bcm-recommended-actions

JSON →
library1.43.61pypypi✓ verified 23d ago

This library provides comprehensive type annotations (stubs) for the `boto3` client of the AWS Billing and Cost Management Recommended Actions service, enabling static type checking with tools like MyPy. It is part of the `mypy-boto3` project, which generates stubs for all AWS services. The current version is `1.42.9`, and the project has a frequent release cadence, often aligning with `boto3` updates and new AWS service features.

pip install boto3 mypy-boto3-bcm-recommended-actions
INSTALL
IMPORT
SIG · MYPY-BOTO3-BCM-REC
M
mypy-boto3-bcm-recommended-actions
type-stubspythonv1.43.61
Install
3.8s avg
Import
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.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
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 51.8MB
glibc
py 3.103.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.
fix
Upgrade 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.
fix
Review 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.
fix
Ensure `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.
fix
Regularly 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.
fix
Always 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.
Agent activity
23 hits · last 30 days
node
20
OpenAI (training)
2
Resources
mypy-boto3-bcm-recommended-actions — pip install mypy-boto3-bcm-recommended-actions · libregistry