Type annotations for boto3.KinesisAnalytics 1.14.43 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-kinesisanalytics
Type annotations for boto3.KinesisAnalytics 1.14.43 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.43.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a623fec3dc1def4dcb47958e653a9c68995b3ca1b28c94ca762bd1a979727929 |
|
MD5 | 69d7a1df9f9221c971d1a5f7bc5f5c62 |
|
BLAKE2b-256 | 039fac10ab582b405301e63cca6f76783c3f8d2ea3e7914d99d51b0a99778604 |
Hashes for mypy_boto3_kinesisanalytics-1.14.43.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1ec4c45740da18b2e2841ab3d6e4f65882ca5a12815c4ac588dd4d5df253dac |
|
MD5 | f116d9c3e9c27c04765f0ee4fc8af284 |
|
BLAKE2b-256 | bc1e27f3f729de92d9439f93fa93791a2ad59a61a1e2d63f36c667435ceb1ceb |