Type annotations for boto3.KinesisAnalytics 1.14.33 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-kinesisanalytics
Type annotations for boto3.KinesisAnalytics 1.14.33 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.33.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f6efbb9474d2cf66dabe21e1c57d0f73dce25c682b95a501f9d0bff031b41ac |
|
MD5 | 883324b22a0df1ba8afa3afc8a7e60a3 |
|
BLAKE2b-256 | a98a74749deb57c8e2398985a48384982081f948de5a6d7658213d7dc455e459 |
Hashes for mypy_boto3_kinesisanalytics-1.14.33.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f60f23cd5bfb0a93868938b2c437201923a956ff69d508d3ed2a377900a1fce7 |
|
MD5 | 235a43abe387da2a1b9359e42d20d1e8 |
|
BLAKE2b-256 | ec6d3ec7a03cb2fb9296d4e0c6e2747da80786fa44fe4f4ebe295168c5be8639 |