Type annotations for boto3.IoTAnalytics 1.13.25 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-iotanalytics
Type annotations for boto3.IoTAnalytics 1.13.25 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.2.
More information can be found on boto3-stubs page.
How to use
Make sure you have mypy installed and activated in your IDE.
Install boto3-stubs
for IoTAnalytics
service.
python -m pip install boto3-stubs[iotanalytics]
# update installed packages index for automated type discovery
python -m mypy_boto3
Use boto3
with mypy_boto3_iotanalytics
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_iotanalytics import IoTAnalyticsClient
# Now mypy can check if your code is valid.
client: IoTAnalyticsClient = boto3.client("iotanalytics")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: IoTAnalyticsClient = session.client("iotanalytics")
# Annotated paginators are included as well
import mypy_boto3_iotanalytics.paginator as iotanalytics_paginators
list_channels_paginator: iotanalytics_paginators.ListChannelsPaginator = client.get_paginator("list_channels")
list_dataset_contents_paginator: iotanalytics_paginators.ListDatasetContentsPaginator = client.get_paginator("list_dataset_contents")
list_datasets_paginator: iotanalytics_paginators.ListDatasetsPaginator = client.get_paginator("list_datasets")
list_datastores_paginator: iotanalytics_paginators.ListDatastoresPaginator = client.get_paginator("list_datastores")
list_pipelines_paginator: iotanalytics_paginators.ListPipelinesPaginator = client.get_paginator("list_pipelines")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_iotanalytics
and other installed services.
# Run this command when you add or remove service packages
python -m mypy_boto3
Generated index provides overloads for boto3.client
and boto3.service
,
boto3.Session.client
and boto3.Session.resource
functions,
so explicit type annotations are not needed.
mypy
supports function overloads as expectedPyCharm
also supports function overloads, but consumes a lot of RAM, use carefullyVSCode
does not currently support function overloads
Also, generated index allows you to import types from mypy_boto3
:
# you can replace imports
import mypy_boto3_iotanalytics as iotanalytics
from mypy_boto3_iotanalytics import IoTAnalyticsClient
# with these
from mypy_boto3 import iotanalytics
from mypy_boto3.iotanalytics import IoTAnalyticsClient
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-iotanalytics-1.13.25.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fe2d62bc0cfa7e467522bde78e35155512e5e41cb3144903d4273ebee1144df |
|
MD5 | da9f78de8c2c762d3b791d3907ddfa29 |
|
BLAKE2b-256 | 15557e7051da827f5dc55c7949c4ea00850e01c61e0c747f116b305976ec8471 |
Hashes for mypy_boto3_iotanalytics-1.13.25.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb523dfc3431a8d4a969f2840b1e0be9757ae4571c417662900b78e181e3a53a |
|
MD5 | 6a4ab7ff78c7e011f198c57c53032973 |
|
BLAKE2b-256 | 85c15aec2f52bc1a19616df855e6fa08d3bafbe34c66e985b0c6d4f66a77ac9d |