Registry / type-stubs / mypy-boto3-bcm-dashboards

mypy-boto3-bcm-dashboards

JSON →
library1.43.0pypypi✓ verified 22d ago

This package provides type annotations (stubs) for the `boto3` AWS SDK, specifically for the 'BillingandCostManagementDashboards' service. It allows static type checkers like `mypy` to validate `boto3` client calls, improving code quality and catching potential errors early. The library is part of the `mypy-boto3-builder` project, which generates stubs for all `boto3` services and releases frequently, often in sync with `boto3` and builder updates. Current version is 1.42.87.

pip install mypy-boto3-bcm-dashboards boto3
INSTALL
IMPORT
SIG · MYPY-BOTO3-BCM-DAS
M
mypy-boto3-bcm-dashboards
type-stubspythonv1.43.0
Install
3.7s avg
Import
577ms
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.95 runs
installs and imports cleanly · install 0.0s · import 0.594s · 51.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.7s · import 0.560s · 52MB
50MB installed
● package 50MB
Code
Verified usage

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

BillingandCostManagementDashboardsClient
from mypy_boto3_bcm_dashboards.client import BillingandCostManagementDashboardsClient
from mypy_boto3_bcm_dashboards import BillingandCostManagementDashboardsClient
Client types are specifically located in the `.client` submodule.
Client
from boto3.session import Session bcm_client: BillingandCostManagementDashboardsClient = Session().client('billing-cost-management-dashboards')
bcm_client: Client = boto3.client('billing-cost-management-dashboards')
Directly annotating with `boto3.client` results in `Any` or incomplete type information. Always use the specific generated stub client type for full type safety.

Demonstrates how to initialize a `boto3` client and type-hint it with `mypy-boto3-bcm-dashboards` for static analysis. This allows `mypy` to verify the client's methods and parameters.

import boto3 from mypy_boto3_bcm_dashboards.client import BillingandCostManagementDashboardsClient from typing import List, Dict, Any def get_dashboards(client: BillingandCostManagementDashboardsClient) -> List[Dict[str, Any]]: try: response = client.list_dashboards( MaxResults=10 ) return response.get('Dashboards', []) except client.exceptions.ResourceNotFoundException: print("No dashboards found.") return [] except Exception as e: print(f"An error occurred: {e}") return [] if __name__ == '__main__': # Example usage with boto3 client bcm_client: BillingandCostManagementDashboardsClient = boto3.client('billing-cost-management-dashboards') dashboards = get_dashboards(bcm_client) print(f"Found {len(dashboards)} dashboards.") # This code can now be type-checked by mypy for correct API usage
Debug
Known issues
breakingSupport for Python 3.8 has been removed in `mypy-boto3-builder` version 8.12.0. Users on Python 3.8 must upgrade to Python 3.9 or newer to continue receiving updates and fixes for `mypy-boto3` stubs.
fix
Upgrade your Python environment to 3.9 or higher.
affects: >=8.12.0 (builder)
breakingThe `mypy-boto3` builder migrated all packages to PEP 561 compliance in version 8.12.0. While this improves packaging and type checker compatibility, it might affect custom packaging setups or older environments. Ensure your `pip` and `setuptools` are up-to-date.
fix
Ensure `pip` and `setuptools` are updated (`pip install --upgrade pip setuptools`). Check your `mypy` configuration if issues persist.
affects: >=8.12.0 (builder)
breakingIn `mypy-boto3-builder` version 8.9.0, TypeDef names for packed method arguments were shortened (e.g., `CreateDistributionRequestRequestTypeDef` became `CreateDistributionRequestTypeDef`). If your code explicitly references these types, you may need to update their names.
fix
Review and update explicit TypeDef references in your code to match the new, shorter names.
affects: >=8.9.0 (builder)
gotchaThe installed package name `mypy-boto3-bcm-dashboards` uses hyphens, but the Python import path uses underscores (`mypy_boto3_bcm_dashboards`). Always use underscores in your import statements.
fix
Use `import mypy_boto3_bcm_dashboards` (or submodules) in your Python code.
affects: All
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides runtime functionality for AWS SDK calls, which these stubs type-check.
mypyoptionalThe static type checker that utilizes these stubs for type validation.
Agent activity
26 hits · last 30 days
node
24
OpenAI (training)
1
Resources
mypy-boto3-bcm-dashboards — pip install mypy-boto3-bcm-dashboards · libregistry