Type annotations for boto3.MediaConnect 1.13.26 service, generated by mypy-boto3-buider 2.0.3
Project description
mypy-boto3-mediaconnect
Type annotations for boto3.MediaConnect 1.13.26 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.3.
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 MediaConnect
service.
python -m pip install boto3-stubs[mediaconnect]
# update installed packages index for automated type discovery
python -m mypy_boto3
Use boto3
with mypy_boto3_mediaconnect
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_mediaconnect import MediaConnectClient
# Now mypy can check if your code is valid.
client: MediaConnectClient = boto3.client("mediaconnect")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: MediaConnectClient = session.client("mediaconnect")
# Annotated paginators are included as well
import mypy_boto3_mediaconnect.paginator as mediaconnect_paginators
list_entitlements_paginator: mediaconnect_paginators.ListEntitlementsPaginator = client.get_paginator("list_entitlements")
list_flows_paginator: mediaconnect_paginators.ListFlowsPaginator = client.get_paginator("list_flows")
Automated type discovery
mypy_boto3
package can generate index for mypy_boto3_mediaconnect
and other installed services.
# Run this command when you add or remove service packages
python -m mypy_boto3
Generated index provides overloads for boto3.client
and boto3.service
,
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 carefullyVSCode
does not currently support function overloads
Also, generated index allows you to import types from mypy_boto3
:
# you can replace imports
import mypy_boto3_mediaconnect as mediaconnect
from mypy_boto3_mediaconnect import MediaConnectClient
# with these
from mypy_boto3 import mediaconnect
from mypy_boto3.mediaconnect import MediaConnectClient
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-mediaconnect-1.13.26.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | af3042f79880816fb4a1deaa60a5b749fe22a97bf37dd17935c9f6a5958c67ea |
|
MD5 | 3189a23adc4cadf46ecaed2c6d4a764c |
|
BLAKE2b-256 | 6723b8f3464a215c460d6ba5fcbf11a6105c65f1ad41e58ea8e5effda023726d |
Hashes for mypy_boto3_mediaconnect-1.13.26.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11d7e17d998b13010660e6e18634bccf8a9599189caac97989379209ef991951 |
|
MD5 | 30f3799c394bbe286c6843e1c04ab00c |
|
BLAKE2b-256 | 55ef1a525fe461e1ce1f25deb6061cb261f751f481d0a65188f80dd43b354555 |