Type annotations for boto3.IoTSiteWise 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-iotsitewise
Type annotations for boto3.IoTSiteWise 1.14.0 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.14.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef951bcbb95936eb5a051033eabfdb0e51b720d52d23c657ebec7a4030220799 |
|
MD5 | 7f267f07a0a3531d6a94b6f9fa706e6c |
|
BLAKE2b-256 | 272b731e5bed84c341d6b981ce31fa2d172629fcbff152d51e32b82fd67424d6 |
Hashes for mypy_boto3_iotsitewise-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5d625c27548bcf6dcd24c35b6e15e605928a7b3c692c459233a2f861bd75658 |
|
MD5 | 2eae56d4761df008c2863afbef1ca161 |
|
BLAKE2b-256 | 9b66786593ac2f94bb03c5145e98db2d7fb7dac386504cb2c796430ab3294dbd |