Type annotations for boto3.KinesisAnalytics 1.14.51 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-kinesisanalytics
Type annotations for boto3.KinesisAnalytics 1.14.51 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 KinesisAnalytics
service.
python -m pip install boto3-stubs[kinesisanalytics]
How to use
Client annotations
KinesisAnalyticsClient
provides annotations for boto3.client("kinesisanalytics")
.
import boto3
from mypy_boto3_kinesisanalytics import KinesisAnalyticsClient
from mypy_boto3_kinesisanalytics.type_defs import ApplicationDetailTypeDef, ...
client: KinesisAnalyticsClient = boto3.client("kinesisanalytics")
# 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: KinesisAnalyticsClient = session.client("kinesisanalytics")
Typed dictionations
mypy_boto3_kinesisanalytics.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
def get_structure() -> ApplicationDetailTypeDef:
return {
...
}
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_kinesisanalytics
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("kinesisanalytics")
session_client = boto3.Session().client("kinesisanalytics")
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-kinesisanalytics-1.14.51.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a16ba937252f18c9480f0e949eb1cce59b9ac1d81777e5932e2bfe466771be4d |
|
MD5 | 10246b94546b0c5a79dc61a069262b31 |
|
BLAKE2b-256 | 1303da70d4e7daab346fbb9db78b14b3ef630dc01ff5c88e6cef364208decf3f |
Hashes for mypy_boto3_kinesisanalytics-1.14.51.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73fbcd5f7be7a3242c5be2fa1646a5f3ecf6e362b2dc41606e6962e06a1d905a |
|
MD5 | 083bf63ff1dc01738ee7553a5734cd87 |
|
BLAKE2b-256 | a6e8a69b04cc299f028964af319dde560ce8e0cfc549fb9b3f1f0fd3a4dad8f9 |