Type annotations for boto3.MediaConnect 1.13.24 service, generated by mypy-boto3-buider 2.0.2
Project description
mypy-boto3-mediaconnect
Type annotations for boto3.MediaConnect 1.13.24 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.24.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbcf09ed0686cb58c5bdafd93db2c265c0bc3634373f8689ac5274c82a47f7de |
|
MD5 | 42a7daca0d413d4b139318366123c301 |
|
BLAKE2b-256 | 7357d2c9d0c518be9f2052e5d38cb3604565a26771fc6ead9fbb8d85189a51cf |
Hashes for mypy_boto3_mediaconnect-1.13.24.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c7f678745997d855347732446f3a5d7dfa408e49146f818cc8651f2d8147f11 |
|
MD5 | f8c39378ba88abfca60aee8fdf2e4134 |
|
BLAKE2b-256 | b987f27aaf1bb81ca6f781ad0a94664653f1d2ad58377034a52aa1579d8e7c5c |