Type annotations for boto3.MediaPackageVod 1.14.0 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-mediapackage-vod
Type annotations for boto3.MediaPackageVod 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 MediaPackageVod
service.
python -m pip install boto3-stubs[mediapackage-vod]
Use boto3
with mypy_boto3_mediapackage_vod
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_mediapackage_vod import MediaPackageVodClient
# Now mypy can check if your code is valid.
client: MediaPackageVodClient = boto3.client("mediapackage-vod")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: MediaPackageVodClient = session.client("mediapackage-vod")
# Annotated paginators are included as well
import mypy_boto3_mediapackage_vod.paginator as mediapackage_vod_paginators
list_assets_paginator: mediapackage_vod_paginators.ListAssetsPaginator = client.get_paginator("list_assets")
list_packaging_configurations_paginator: mediapackage_vod_paginators.ListPackagingConfigurationsPaginator = client.get_paginator("list_packaging_configurations")
list_packaging_groups_paginator: mediapackage_vod_paginators.ListPackagingGroupsPaginator = client.get_paginator("list_packaging_groups")
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
import boto3
# 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.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a67d69c30ab8146853d0e2c63e924d02c9164bc33bfcff3b49e75e292105f541 |
|
MD5 | 71c689808719636dc29641d90198544c |
|
BLAKE2b-256 | cbe77df0b8834e7f56539c0cd52305a010d0b1fb70d5c0dcdcb00b5342e2095f |
Hashes for mypy_boto3_mediapackage_vod-1.14.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c193a813a2a4de42e713a74482fea2eac01074c24af8be18f0234ded7942d73 |
|
MD5 | 3a3ed3b9c8e0c2034246428ac48d05f5 |
|
BLAKE2b-256 | f744d87d19e5a4b2c6e03e962ec0cf88fda5ee51785cf97be19bf126ab3bf9f9 |