Type annotations for boto3.IoTSiteWise 1.13.24 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-iotsitewise
Type annotations for boto3.IoTSiteWise 1.13.24 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 IoTSiteWise
service.
python -m pip install boto3-stubs[iotsitewise]
# update installed packages index for automated type discovery
python -m mypy_boto3
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")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_iotsitewise
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_iotsitewise as iotsitewise
from mypy_boto3_iotsitewise import IoTSiteWiseClient
# with these
from mypy_boto3 import iotsitewise
from mypy_boto3.iotsitewise import IoTSiteWiseClient
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.24.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9632c6cacb973afa0118af471d52030b3d0585005d776491f64eb2e374f36d01 |
|
MD5 | 5708b35f8ae05878a33ee26e4ef7ef71 |
|
BLAKE2b-256 | 1f4e822fca45348e24515e8b795427b98062327d8bb3fcb7136d34822d342081 |
Hashes for mypy_boto3_iotsitewise-1.13.24.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 807c296206ae7a0224fa337fcbfe097ad2c7e4bf54ff486f14c2f49753b359a3 |
|
MD5 | 141ba18cdf44fc4d5b208aa4a64ffa28 |
|
BLAKE2b-256 | 4fba465c2b27af9dd3d3db764ebe0808a63f05740d7aee093601052c77fa14a7 |