Type annotations for boto3.MediaLive 1.13.26 service, generated by mypy-boto3-buider 2.0.4
Project description
mypy-boto3-medialive
Type annotations for boto3.MediaLive 1.13.26 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 MediaLive
service.
python -m pip install boto3-stubs[medialive]
Use boto3
with mypy_boto3_medialive
in your project and enjoy type checking and auto-complete.
import boto3
from mypy_boto3_medialive import MediaLiveClient
# Now mypy can check if your code is valid.
client: MediaLiveClient = boto3.client("medialive")
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: MediaLiveClient = session.client("medialive")
# Waiters are also supported
import mypy_boto3_medialive.waiter as medialive_waiters
channel_created_waiter: medialive_waiters.ChannelCreatedWaiter = client.get_waiter("channel_created")
channel_deleted_waiter: medialive_waiters.ChannelDeletedWaiter = client.get_waiter("channel_deleted")
channel_running_waiter: medialive_waiters.ChannelRunningWaiter = client.get_waiter("channel_running")
channel_stopped_waiter: medialive_waiters.ChannelStoppedWaiter = client.get_waiter("channel_stopped")
input_attached_waiter: medialive_waiters.InputAttachedWaiter = client.get_waiter("input_attached")
input_deleted_waiter: medialive_waiters.InputDeletedWaiter = client.get_waiter("input_deleted")
input_detached_waiter: medialive_waiters.InputDetachedWaiter = client.get_waiter("input_detached")
multiplex_created_waiter: medialive_waiters.MultiplexCreatedWaiter = client.get_waiter("multiplex_created")
multiplex_deleted_waiter: medialive_waiters.MultiplexDeletedWaiter = client.get_waiter("multiplex_deleted")
multiplex_running_waiter: medialive_waiters.MultiplexRunningWaiter = client.get_waiter("multiplex_running")
multiplex_stopped_waiter: medialive_waiters.MultiplexStoppedWaiter = client.get_waiter("multiplex_stopped")
# Annotated paginators are included as well
import mypy_boto3_medialive.paginator as medialive_paginators
describe_schedule_paginator: medialive_paginators.DescribeSchedulePaginator = client.get_paginator("describe_schedule")
list_channels_paginator: medialive_paginators.ListChannelsPaginator = client.get_paginator("list_channels")
list_input_devices_paginator: medialive_paginators.ListInputDevicesPaginator = client.get_paginator("list_input_devices")
list_input_security_groups_paginator: medialive_paginators.ListInputSecurityGroupsPaginator = client.get_paginator("list_input_security_groups")
list_inputs_paginator: medialive_paginators.ListInputsPaginator = client.get_paginator("list_inputs")
list_multiplex_programs_paginator: medialive_paginators.ListMultiplexProgramsPaginator = client.get_paginator("list_multiplex_programs")
list_multiplexes_paginator: medialive_paginators.ListMultiplexesPaginator = client.get_paginator("list_multiplexes")
list_offerings_paginator: medialive_paginators.ListOfferingsPaginator = client.get_paginator("list_offerings")
list_reservations_paginator: medialive_paginators.ListReservationsPaginator = client.get_paginator("list_reservations")
Dynamic type annotations
mypy_boto3
command generates boto3.client/resource
type annotations for
mypy_boto3_medialive
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("medialive")
session_client = boto3.Session().client("medialive")
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-medialive-1.13.26.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72d9552cdf4cf17469c017be9f9317a355bee9c0920092235c843f8f73704c6c |
|
MD5 | e82a034e0f27576fceb47b5b360162fa |
|
BLAKE2b-256 | 25695248a67c3afaa4ae4c43d6caeaff53b37a60c55950e02e058a3eab3a4f7f |
Hashes for mypy_boto3_medialive-1.13.26.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 867e71e200f286a8abced101060f0ea79b2dac012ec04d4bf8941afde58a5605 |
|
MD5 | 29d6e06a791c041f7f4f5362e80fc564 |
|
BLAKE2b-256 | 233baafb60b647c5e8cb98527a5af0536e6f556fccab60ad2c5a033e3368bd3c |