# mypy-boto3-iotanalytics
[![PyPI - mypy-boto3-iotanalytics](https://img.shields.io/pypi/v/mypy-boto3-iotanalytics.svg?color=blue)](https://pypi.org/project/mypy-boto3-iotanalytics)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mypy-boto3-iotanalytics.svg?color=blue)](https://pypi.org/project/mypy-boto3-iotanalytics)
[![Docs](https://img.shields.io/readthedocs/mypy-boto3-builder.svg?color=blue)](https://mypy-boto3-builder.readthedocs.io/)
Type annotations for
[boto3.IoTAnalytics 1.14.59](https://boto3.amazonaws.com/v1/documentation/api/1.14.59/reference/services/iotanalytics.html#IoTAnalytics) service
compatible with
[VSCode](https://code.visualstudio.com/),
[PyCharm](https://www.jetbrains.com/pycharm/),
[mypy](https://github.com/python/mypy),
[pyright](https://github.com/microsoft/pyright)
and other tools.
Generated by [mypy-boto3-buider 3.0.4](https://github.com/vemel/mypy_boto3_builder).
More information can be found on [boto3-stubs](https://pypi.org/project/boto3-stubs/) page.
- [mypy-boto3-iotanalytics](#mypy-boto3-iotanalytics)
- [How to install](#how-to-install)
- [Usage](#usage)
- [VSCode](#vscode)
- [PyCharm](#pycharm)
- [Other IDEs](#other-ides)
- [mypy](#mypy)
- [pyright](#pyright)
- [Explicit type annotations](#explicit-type-annotations)
- [Client annotations](#client-annotations)
- [Paginators annotations](#paginators-annotations)
- [Waiters annotations](#waiters-annotations)
- [Service Resource annotations](#service-resource-annotations)
- [Other resources annotations](#other-resources-annotations)
- [Collections annotations](#collections-annotations)
- [Typed dictionations](#typed-dictionations)
## How to install
Install `boto3-stubs` for `IoTAnalytics` service.
```bash
python -m pip install boto3-stubs[iotanalytics]
```
## Usage
### VSCode
- Install [Python extension](https://marketplace.visualstudio.com/items?itemName=ms-python.python)
- Install [Pylance extension](https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance)
- Set `Pylance` as your Python Language Server
- Install `boto-stubs[iotanalytics]` in your environment: `python -m pip install 'boto3-stubs[iotanalytics]'`
Both type checking and auto-complete should work for `IoTAnalytics` service.
No explicit type annotations required, write your `boto3` code as usual.
### PyCharm
- Install `boto-stubs[iotanalytics]` in your environment: `python -m pip install 'boto3-stubs[iotanalytics]'`
Both type checking and auto-complete should work for `IoTAnalytics` 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 support `mypy` or `pyright`, everything should work.
### mypy
- Install `mypy`: `python -m pip install mypy`
- Install `boto-stubs[iotanalytics]` in your environment: `python -m pip install 'boto3-stubs[iotanalytics]'`
- Run `mypy` as usual
Type checking should work for `IoTAnalytics` service.
No explicit type annotations required, write your `boto3` code as usual.
### pyright
- Install `pyright`: `yarn global add pyright`
- Install `boto-stubs[iotanalytics]` in your environment: `python -m pip install 'boto3-stubs[iotanalytics]'`
- Optionally, you can install `boto3-stubs` to `typings` folder.
Type checking should work for `IoTAnalytics` service.
No explicit type annotations required, write your `boto3` code as usual.
## Explicit type annotations
### Client annotations
`IoTAnalyticsClient` provides annotations for `boto3.client("iotanalytics")`.
```python
import boto3
from mypy_boto3_iotanalytics import IoTAnalyticsClient
client: IoTAnalyticsClient = boto3.client("iotanalytics")
# 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: IoTAnalyticsClient = session.client("iotanalytics")
```
### Paginators annotations
`mypy_boto3_iotanalytics.paginator` module contains type annotations for all paginators.
```python
from mypy_boto3_iotanalytics import IoTAnalyticsClient
from mypy_boto3_iotanalytics.paginator import (
ListChannelsPaginator,
ListDatasetContentsPaginator,
ListDatasetsPaginator,
ListDatastoresPaginator,
ListPipelinesPaginator,
)
client: IoTAnalyticsClient = boto3.client("iotanalytics")
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
list_channels_paginator: ListChannelsPaginator = client.get_paginator("list_channels")
list_dataset_contents_paginator: ListDatasetContentsPaginator = client.get_paginator("list_dataset_contents")
list_datasets_paginator: ListDatasetsPaginator = client.get_paginator("list_datasets")
list_datastores_paginator: ListDatastoresPaginator = client.get_paginator("list_datastores")
list_pipelines_paginator: ListPipelinesPaginator = client.get_paginator("list_pipelines")
```
### Typed dictionations
`mypy_boto3_iotanalytics.type_defs` module contains structures and shapes assembled
to typed dictionaries for additional type checking.
```python
from mypy_boto3_iotanalytics.type_defs import (
AddAttributesActivityTypeDef,
BatchPutMessageErrorEntryTypeDef,
BatchPutMessageResponseTypeDef,
ChannelActivityTypeDef,
ChannelStatisticsTypeDef,
ChannelStorageSummaryTypeDef,
ChannelStorageTypeDef,
ChannelSummaryTypeDef,
ChannelTypeDef,
ContainerDatasetActionTypeDef,
CreateChannelResponseTypeDef,
CreateDatasetContentResponseTypeDef,
CreateDatasetResponseTypeDef,
CreateDatastoreResponseTypeDef,
CreatePipelineResponseTypeDef,
CustomerManagedChannelS3StorageSummaryTypeDef,
CustomerManagedChannelS3StorageTypeDef,
CustomerManagedDatastoreS3StorageSummaryTypeDef,
CustomerManagedDatastoreS3StorageTypeDef,
DatasetActionSummaryTypeDef,
DatasetActionTypeDef,
DatasetContentDeliveryDestinationTypeDef,
DatasetContentDeliveryRuleTypeDef,
DatasetContentStatusTypeDef,
DatasetContentSummaryTypeDef,
DatasetContentVersionValueTypeDef,
DatasetEntryTypeDef,
DatasetSummaryTypeDef,
DatasetTriggerTypeDef,
DatasetTypeDef,
DatastoreActivityTypeDef,
DatastoreStatisticsTypeDef,
DatastoreStorageSummaryTypeDef,
DatastoreStorageTypeDef,
DatastoreSummaryTypeDef,
DatastoreTypeDef,
DeltaTimeTypeDef,
DescribeChannelResponseTypeDef,
DescribeDatasetResponseTypeDef,
DescribeDatastoreResponseTypeDef,
DescribeLoggingOptionsResponseTypeDef,
DescribePipelineResponseTypeDef,
DeviceRegistryEnrichActivityTypeDef,
DeviceShadowEnrichActivityTypeDef,
EstimatedResourceSizeTypeDef,
FilterActivityTypeDef,
GetDatasetContentResponseTypeDef,
GlueConfigurationTypeDef,
IotEventsDestinationConfigurationTypeDef,
LambdaActivityTypeDef,
ListChannelsResponseTypeDef,
ListDatasetContentsResponseTypeDef,
ListDatasetsResponseTypeDef,
ListDatastoresResponseTypeDef,
ListPipelinesResponseTypeDef,
ListTagsForResourceResponseTypeDef,
LoggingOptionsTypeDef,
MathActivityTypeDef,
MessageTypeDef,
OutputFileUriValueTypeDef,
PaginatorConfigTypeDef,
PipelineActivityTypeDef,
PipelineSummaryTypeDef,
PipelineTypeDef,
QueryFilterTypeDef,
RemoveAttributesActivityTypeDef,
ReprocessingSummaryTypeDef,
ResourceConfigurationTypeDef,
RetentionPeriodTypeDef,
RunPipelineActivityResponseTypeDef,
S3DestinationConfigurationTypeDef,
SampleChannelDataResponseTypeDef,
ScheduleTypeDef,
SelectAttributesActivityTypeDef,
SqlQueryDatasetActionTypeDef,
StartPipelineReprocessingResponseTypeDef,
TagTypeDef,
TriggeringDatasetTypeDef,
VariableTypeDef,
VersioningConfigurationTypeDef,
)
def get_structure()
PyPI 官网下载 | mypy-boto3-iotanalytics-1.14.59.0.tar.gz
版权申诉
22 浏览量
2022-01-13
15:06:08
上传
评论
收藏 13KB GZ 举报
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
最新资源
- 计算机视觉(CV)open CV 人脸识别程序.docx
- python 端午节游戏,选择三个传统的端午节活动之一:包粽子、赛龙舟或挂艾草 根据玩家的选择,游戏会描述相应的情节,并在完成后
- C语言各版块实验题库、实验汇报以及实验教学案例资源
- 数据库连接(MySQL与VS2022)_vs2022 mysql-CSDN博客 (2024_6_1 19_11_34).html
- Flappy bird小游戏
- 数电实验五:555单稳态触发电路、555单稳态触发电路、555构成的施密特触发器
- MySQLTuner,一个用Perl编写的脚本,它允许你快速审查MySQL安装情况,并进行调整以提高性能和稳定性
- 冒泡排序 基础排序 插入排序 快速排序 双路快速排序 三路快速排序 堆排序.zip
- 数电实验四:加法计数器、减法计数器、加法器、建议数字钟、74LS192功能测试
- JSP基于网络超市商品销售管理系统的设计与实现(源代码+lw).zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈