Type annotations for boto3.IoTEventsData 1.14.17 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-iotevents-data
Type annotations for boto3.IoTEventsData 1.14.17 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.17.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd7abd5e5c0352f44a9ba4cc0146d4357b582775b534bc6f654b8ede57ae640b |
|
MD5 | 58e9d2aafe90ecc2a04e6602854e1653 |
|
BLAKE2b-256 | 6ffe3deb9b1d72b3f93740cb840b6817a5a10df4e0db38051d15a973e0c3b784 |
Hashes for mypy_boto3_iotevents_data-1.14.17.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0189702efc797599d3814c2e083bda64a67f2325bd9066f1e01134e45c4d5dc |
|
MD5 | e385405281fe46f2a8b24786f26c9069 |
|
BLAKE2b-256 | a0b647e2589a895ef4e80bf5ff44ec6d5dee18a0bc89c279a7c17ae16ad7d7d3 |