Type annotations for boto3.IoTEventsData 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-iotevents-data
Type annotations for boto3.IoTEventsData 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 IoTEventsData
service.
python -m pip install boto3-stubs[iotevents-data]
Use boto3
with mypy_boto3_iotevents_data
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_iotevents_data import IoTEventsDataClient
# Now mypy can check if your code is valid.
client: IoTEventsDataClient = boto3.client("iotevents-data")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: IoTEventsDataClient = session.client("iotevents-data")
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
import boto3
# 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.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e40d706466616ef5b2abe8c5bf5c650d6e9f40065d9a6103a1153c63f402e01d |
|
MD5 | 6279c79fc3c6ffd6bef039916fd90f92 |
|
BLAKE2b-256 | 038a6bd621bab2d94ccc45918ca0754f78a41a3d06fa0f601929c53b19ccb60f |
Hashes for mypy_boto3_iotevents_data-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c917ac6dd91362a1a3eae2c3c7e91b93504c4a223bb5dc5d3d134403fe89a2a9 |
|
MD5 | c7c7740b3b36506715a7dff521737621 |
|
BLAKE2b-256 | c7f80cdae5a724dce21ed4b902e26cb12a5f64b5d1474cb0b8b2b0b21c7dbbc3 |