Registry / type-stubs / mypy-boto3-applicationcostprofiler

mypy-boto3-applicationcostprofiler

JSON →
library1.43.0pypypi✓ verified 23d ago

mypy-boto3-applicationcostprofiler provides type annotations for the boto3 ApplicationCostProfiler service, generated with mypy-boto3-builder. It enhances development with type checking and autocomplete for AWS SDK for Python (boto3) clients. The library is actively maintained with frequent releases, typically in sync with boto3 and botocore updates.

pip install mypy-boto3-applicationcostprofiler
INSTALL
IMPORT
SIG · MYPY-BOTO3-APPLICA
M
mypy-boto3-applicationcostprofiler
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 · 19.6MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 3.5s · import 0.000s · 20MB
18MB installed
● package 18MB
Code
Verified usage

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

ApplicationCostProfilerClient
from mypy_boto3_applicationcostprofiler import ApplicationCostProfilerClient
from mypy_boto3_applicationcostprofiler import ApplicationCostProfilerClient

This quickstart demonstrates how to obtain a type-hinted boto3 client for the ApplicationCostProfiler service. It uses `TYPE_CHECKING` for conditional imports, ensuring the stubs are only used during type checking. A sample API call `list_report_definitions` is included to show typical usage with type safety.

import boto3 from typing import TYPE_CHECKING if TYPE_CHECKING: from mypy_boto3_applicationcostprofiler.client import ApplicationCostProfilerClient from mypy_boto3_applicationcostprofiler.type_defs import ListReportDefinitionsOutputTypeDef def get_app_cost_profiler_client() -> ApplicationCostProfilerClient: """Returns a typed ApplicationCostProfiler client.""" return boto3.client('applicationcostprofiler') client = get_app_cost_profiler_client() try: # Example operation: List report definitions response: ListReportDefinitionsOutputTypeDef = client.list_report_definitions() print(f"Successfully listed {len(response.get('reportDefinitions', []))} report definitions.") except client.exceptions.ClientError as e: print(f"Error listing report definitions: {e}")
Debug
Known issues
breakingPython 3.8 support has been removed since mypy-boto3-builder 8.12.0 (which generated this package). Users on Python 3.8 will experience errors as `mypy` and `typeshed` no longer support it.
fix
Upgrade your Python environment to 3.9 or higher. Update your `mypy` version to be compatible with your Python version.
affects: mypy-boto3-builder >= 8.12.0, mypy-boto3-applicationcostprofiler >= 1.42.0
breakingThe builder migrated to PEP 561 compliant packages with version 8.12.0. This might affect how some tools or legacy environments interpret the stub packages.
fix
Ensure your packaging tools (pip, poetry, etc.) are up-to-date. In most modern setups, this change is transparent, but older or custom environments might need adjustment.
affects: mypy-boto3-builder >= 8.12.0, mypy-boto3-applicationcostprofiler >= 1.42.0
breakingStarting with mypy-boto3-builder 8.9.0, TypeDef names for packed method arguments became shorter (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`), and conflicting `Extra` postfixes moved to the end (e.g., `CreateDistributionExtraRequestTypeDef` -> `CreateDistributionRequestExtraTypeDef`).
fix
If you explicitly import and use TypeDef objects, review your code for updated naming conventions. Consult the service-specific `type_defs.pyi` for correct names.
affects: mypy-boto3-builder >= 8.9.0, mypy-boto3-applicationcostprofiler >= 1.40.0
gotchaSome IDEs (like VSCode with older Python extensions) may require explicit type annotations for `boto3.client()` or `boto3.session.client()` calls to get full autocomplete and type checking, as function overloads might not be fully supported by the IDE's language server.
fix
Explicitly cast the client: `client: ApplicationCostProfilerClient = boto3.client('applicationcostprofiler')`. Using the `boto3-stubs` package (rather than individual `mypy-boto3-service` packages) often improves implicit type inference.
affects: All
gotchaPylint might complain about undefined variables when using `TYPE_CHECKING` conditional imports. This is a known issue in Pylint's static analysis.
fix
Use a workaround to set types to `object` in non-`TYPE_CHECKING` mode: `if TYPE_CHECKING: from mypy_boto3_applicationcostprofiler.client import ApplicationCostProfilerClient else: ApplicationCostProfilerClient = object`.
affects: All
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredProvides the underlying AWS SDK functionality that these stubs type-hint.
mypyoptionalRequired for static type checking; other type checkers like Pyright are also compatible.
Agent activity
27 hits · last 30 days
node
24
OpenAI (training)
1
Resources
mypy-boto3-applicationcostprofiler — pip install mypy-boto3-applicationcostprofiler · libregistry