Type annotations for boto3.IoTEventsData 1.14.1 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-iotevents-data
Type annotations for boto3.IoTEventsData 1.14.1 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.2.0.
More information can be found on boto3-stubs page.
How to install
Make sure you have mypy installed and activated in your IDE.
Install boto3-stubs
for IoTEventsData
service.
python -m pip install boto3-stubs[iotevents-data]
How to use
Client annotations
IoTEventsDataClient
provides annotations for boto3.client("iotevents-data")
.
import boto3
from mypy_boto3_iotevents_data import IoTEventsDataClient
from mypy_boto3_iotevents_data.type_defs import BatchPutMessageErrorEntryTypeDef, ...
client: IoTEventsDataClient = boto3.client("iotevents-data")
# 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: IoTEventsDataClient = session.client("iotevents-data")
Typed dictionations
mypy_boto3_iotevents_data.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
def get_structure() -> BatchPutMessageErrorEntryTypeDef:
return {
...
}
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_iotevents_data
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
# Type is discovered correctly by mypy and PyCharm
# VSCode still needs explicit type annotations
client = boto3.client("iotevents-data")
session_client = boto3.Session().client("iotevents-data")
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-iotevents-data-1.14.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | faa7471d7dd40a5134dcf2858d3590e4b0f16f6c10a2cc192d1fdf7914abdf97 |
|
MD5 | 90fe2bfde79361768a9b9b16d74b4b8f |
|
BLAKE2b-256 | e32c7aed0665f3905359b93daba1e7a8415a3a9beece1cc40caa8e347a8aae92 |
Hashes for mypy_boto3_iotevents_data-1.14.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e429d9f6a0cb6268d55b6fb8b24f74a3342d81b15a617f71426e92f85f34375 |
|
MD5 | 9fe4efdb12541e7a85f7997854df4f0a |
|
BLAKE2b-256 | eccd6de3f998f262e6ef8a9179398f2351d65156d55985dd22f28fd93cb6d8ac |