Type annotations for boto3.MediaConnect 1.13.25 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-mediaconnect
Type annotations for boto3.MediaConnect 1.13.25 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.0.2.
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.25.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b6234b451110bfb4f92ffbed2dd53e737f1530c8fc2c390b7e770608049e5e4 |
|
MD5 | ec3b768da82c42c2c9c82d7d91801130 |
|
BLAKE2b-256 | ef197d4697d5411d92e2b36c2bc4e0fe8310d0348db93c5e152288f7fb1c5f29 |
Hashes for mypy_boto3_mediaconnect-1.13.25.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fefb5bc0467a6d31121df8810b6ffebc616a39671af9c6e087a33e3e49d8512f |
|
MD5 | b98fc3a4bd751d30a4256badbc5fb378 |
|
BLAKE2b-256 | 95f2e392c5757901ea4d94cfbfdd611137ab486f06ae01698b7e0d1f53ed4b3d |