Type annotations for boto3.IoTSiteWise 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-iotsitewise
Type annotations for boto3.IoTSiteWise 1.13.26 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.4.
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 IoTSiteWise
service.
python -m pip install boto3-stubs[iotsitewise]
Use boto3
with mypy_boto3_iotsitewise
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_iotsitewise import IoTSiteWiseClient
# Now mypy can check if your code is valid.
client: IoTSiteWiseClient = boto3.client("iotsitewise")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: IoTSiteWiseClient = session.client("iotsitewise")
# Waiters are also supported
import mypy_boto3_iotsitewise.waiter as iotsitewise_waiters
asset_active_waiter: iotsitewise_waiters.AssetActiveWaiter = client.get_waiter("asset_active")
asset_model_active_waiter: iotsitewise_waiters.AssetModelActiveWaiter = client.get_waiter("asset_model_active")
asset_model_not_exists_waiter: iotsitewise_waiters.AssetModelNotExistsWaiter = client.get_waiter("asset_model_not_exists")
asset_not_exists_waiter: iotsitewise_waiters.AssetNotExistsWaiter = client.get_waiter("asset_not_exists")
portal_active_waiter: iotsitewise_waiters.PortalActiveWaiter = client.get_waiter("portal_active")
portal_not_exists_waiter: iotsitewise_waiters.PortalNotExistsWaiter = client.get_waiter("portal_not_exists")
# Annotated paginators are included as well
import mypy_boto3_iotsitewise.paginator as iotsitewise_paginators
get_asset_property_aggregates_paginator: iotsitewise_paginators.GetAssetPropertyAggregatesPaginator = client.get_paginator("get_asset_property_aggregates")
get_asset_property_value_history_paginator: iotsitewise_paginators.GetAssetPropertyValueHistoryPaginator = client.get_paginator("get_asset_property_value_history")
list_access_policies_paginator: iotsitewise_paginators.ListAccessPoliciesPaginator = client.get_paginator("list_access_policies")
list_asset_models_paginator: iotsitewise_paginators.ListAssetModelsPaginator = client.get_paginator("list_asset_models")
list_assets_paginator: iotsitewise_paginators.ListAssetsPaginator = client.get_paginator("list_assets")
list_associated_assets_paginator: iotsitewise_paginators.ListAssociatedAssetsPaginator = client.get_paginator("list_associated_assets")
list_dashboards_paginator: iotsitewise_paginators.ListDashboardsPaginator = client.get_paginator("list_dashboards")
list_gateways_paginator: iotsitewise_paginators.ListGatewaysPaginator = client.get_paginator("list_gateways")
list_portals_paginator: iotsitewise_paginators.ListPortalsPaginator = client.get_paginator("list_portals")
list_project_assets_paginator: iotsitewise_paginators.ListProjectAssetsPaginator = client.get_paginator("list_project_assets")
list_projects_paginator: iotsitewise_paginators.ListProjectsPaginator = client.get_paginator("list_projects")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_iotsitewise
and other installed services.
# Run this command after you add or remove service packages
python -m mypy_boto3
Generated type annotations provide overloads for boto3.client
and boto3.resource
,
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 carefully if you have many services installedVSCode
does not currently support function overloads, use explicit type annotations
import boto3
# Type is discovered correctly by mypy and PyCharm
# VSCode still needs explicit type annotations
client = boto3.client("iotsitewise")
session_client = boto3.Session().client("iotsitewise")
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-iotsitewise-1.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 264eb747184ee1b09fda3ce4d8baabdb4f6b95224b9e396247299172507ee442 |
|
MD5 | cdfb8696bd855ed5fdcde43a7e6a0431 |
|
BLAKE2b-256 | 63d9d9a7f78ff946a3f314ded143c9374efc7272ac992ac8bdcecb2fdfdbef4f |
Hashes for mypy_boto3_iotsitewise-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86b377bfca0be71c79363189e450667428b8edbffa5abaf847c7c4567f085e0c |
|
MD5 | 106390753a600b713b85c530e4d86eca |
|
BLAKE2b-256 | f865c1114fd6cf5bb2a80cca1f2902254e10899c289627fb3d7e5660b9089111 |