Type annotations for boto3.ApplicationCostProfiler 1.19.12 service, generated by mypy-boto3-builder 6.1.2
Project description
mypy-boto3-applicationcostprofiler
Type annotations for boto3.ApplicationCostProfiler 1.19.12 service compatible with VSCode, PyCharm, Emacs, Sublime Text, mypy, pyright and other tools.
Generated by mypy-boto3-builder 6.1.2.
More information can be found on boto3-stubs page and in mypy-boto3-applicationcostprofiler docs
See how it helps to find and fix potential bugs:
How to install
Install boto3-stubs
for ApplicationCostProfiler
service.
python -m pip install boto3-stubs[applicationcostprofiler]
Usage
VSCode
- Install Python extension
- Install Pylance extension
- Set
Pylance
as your Python Language Server - Install
boto-stubs[applicationcostprofiler]
in your environment:python -m pip install 'boto3-stubs[applicationcostprofiler]'
Both type checking and auto-complete should work for ApplicationCostProfiler
service. No explicit type annotations required, write your boto3
code as
usual.
PyCharm
- Install
boto-stubs[applicationcostprofiler]
in your environment:python -m pip install 'boto3-stubs[applicationcostprofiler]'
Both type checking and auto-complete should work for ApplicationCostProfiler
service. No explicit type annotations required, write your boto3
code as
usual. Auto-complete can be slow on big projects or if you have a lot of
installed boto3-stubs
submodules.
Other IDEs
Not tested, but as long as your IDE supports mypy
or pyright
, everything
should work.
mypy
- Install
mypy
:python -m pip install mypy
- Install
boto-stubs[applicationcostprofiler]
in your environment:python -m pip install 'boto3-stubs[applicationcostprofiler]'
- Run
mypy
as usual
Type checking should work for ApplicationCostProfiler
service. No explicit
type annotations required, write your boto3
code as usual.
pyright
- Install
pyright
:yarn global add pyright
- Install
boto-stubs[applicationcostprofiler]
in your environment:python -m pip install 'boto3-stubs[applicationcostprofiler]'
- Optionally, you can install
boto3-stubs
totypings
folder.
Type checking should work for ApplicationCostProfiler
service. No explicit
type annotations required, write your boto3
code as usual.
Explicit type annotations
Client annotations
ApplicationCostProfilerClient
provides annotations for
boto3.client("applicationcostprofiler")
.
import boto3
from mypy_boto3_applicationcostprofiler import ApplicationCostProfilerClient
client: ApplicationCostProfilerClient = boto3.client("applicationcostprofiler")
# now client usage is checked by mypy and IDE should provide code auto-complete
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: ApplicationCostProfilerClient = session.client("applicationcostprofiler")
Paginators annotations
mypy_boto3_applicationcostprofiler.paginator
module contains type annotations
for all paginators.
from mypy_boto3_applicationcostprofiler import ApplicationCostProfilerClient
from mypy_boto3_applicationcostprofiler.paginator import (
ListReportDefinitionsPaginator,
)
client: ApplicationCostProfilerClient = boto3.client("applicationcostprofiler")
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
list_report_definitions_paginator: ListReportDefinitionsPaginator = client.get_paginator("list_report_definitions")
Literals
mypy_boto3_applicationcostprofiler.literals
module contains literals
extracted from shapes that can be used in user code for type checking.
from mypy_boto3_applicationcostprofiler.literals import (
FormatType,
ListReportDefinitionsPaginatorName,
ReportFrequencyType,
S3BucketRegionType,
ServiceName,
PaginatorName,
)
def check_value(value: FormatType) -> bool:
...
Typed dictionaries
mypy_boto3_applicationcostprofiler.type_defs
module contains structures and
shapes assembled to typed dictionaries for additional type checking.
from mypy_boto3_applicationcostprofiler.type_defs import (
DeleteReportDefinitionRequestRequestTypeDef,
DeleteReportDefinitionResultTypeDef,
GetReportDefinitionRequestRequestTypeDef,
GetReportDefinitionResultTypeDef,
ImportApplicationUsageRequestRequestTypeDef,
ImportApplicationUsageResultTypeDef,
ListReportDefinitionsRequestRequestTypeDef,
ListReportDefinitionsResultTypeDef,
PaginatorConfigTypeDef,
PutReportDefinitionRequestRequestTypeDef,
PutReportDefinitionResultTypeDef,
ReportDefinitionTypeDef,
ResponseMetadataTypeDef,
S3LocationTypeDef,
SourceS3LocationTypeDef,
UpdateReportDefinitionRequestRequestTypeDef,
UpdateReportDefinitionResultTypeDef,
)
def get_structure() -> DeleteReportDefinitionRequestRequestTypeDef:
return {
...
}
Versioning
mypy-boto3-applicationcostprofiler
version is the same as related boto3
version and follows PEP 440
format.
Documentation
All type annotations can be found in mypy-boto3-applicationcostprofiler docs
Support and contributing
This package is auto-generated. Please reports any bugs or request new features in mypy-boto3-builder repository.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mypy-boto3-applicationcostprofiler-1.19.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36948fad931f9165ec0352d4d762ed7bf7df644c58668e3aa5bf4fec5cc74b9c |
|
MD5 | 3314fabdae2cd1819498e16d6fbedd2b |
|
BLAKE2b-256 | a2f2709688b1760160aae44cd3b80e88312701b546a60815920a668a341c77d4 |
Hashes for mypy_boto3_applicationcostprofiler-1.19.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 172b1bf327a068224f4e5b705f64f8b9546e1f168921aee1af3b12c4fcd9945f |
|
MD5 | 4c6cfad559c946f4a02e06a40c22522b |
|
BLAKE2b-256 | 1edc99758bc96ea7fb46bfd1ef5fe3b5a3f7bc9bbdbde808053320232012aed5 |