Type annotations for boto3.MediaPackageVod 1.14.33 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-mediapackage-vod
Type annotations for boto3.MediaPackageVod 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 MediaPackageVod
service.
python -m pip install boto3-stubs[mediapackage-vod]
How to use
Client annotations
MediaPackageVodClient
provides annotations for boto3.client("mediapackage-vod")
.
import boto3
from mypy_boto3_mediapackage_vod import MediaPackageVodClient
from mypy_boto3_mediapackage_vod.paginator import (
ListAssetsPaginator,
ListPackagingConfigurationsPaginator,
ListPackagingGroupsPaginator,
)
from mypy_boto3_mediapackage_vod.type_defs import AssetShallowTypeDef, ...
client: MediaPackageVodClient = boto3.client("mediapackage-vod")
# 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: MediaPackageVodClient = session.client("mediapackage-vod")
Paginators annotations
mypy_boto3_mediapackage_vod.paginator
module contains type annotations for all paginators.
client: MediaPackageVodClient = boto3.client("mediapackage-vod")
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
list_assets_paginator: ListAssetsPaginator = client.get_paginator("list_assets")
list_packaging_configurations_paginator: ListPackagingConfigurationsPaginator = client.get_paginator("list_packaging_configurations")
list_packaging_groups_paginator: ListPackagingGroupsPaginator = client.get_paginator("list_packaging_groups")
Typed dictionations
mypy_boto3_mediapackage_vod.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
def get_structure() -> AssetShallowTypeDef:
return {
...
}
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_mediapackage_vod
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("mediapackage-vod")
session_client = boto3.Session().client("mediapackage-vod")
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-mediapackage-vod-1.14.33.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaf652f1d43cf8bd582ad6c63be7ac51603a69e91f811d77aca323a430e55ae5 |
|
MD5 | e770f3e9a0abb89209e536b3036a1f1e |
|
BLAKE2b-256 | 778c32d0fd4859afc3446e650cd9d893d003b3f8d56e100ff43f8663d9ccf05f |
Hashes for mypy_boto3_mediapackage_vod-1.14.33.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c686a61c3be1a9c2c7bd4231bcc701b753ab2b799b12fcb7e38ba1deaa581a35 |
|
MD5 | 12537eb6d3b7f1500f9cca886d6bb49b |
|
BLAKE2b-256 | aa3cedbb8a51ff1ba587894c7845eca4719901e2ca0b8962ed059f7944b1b93f |