Type annotations for boto3.MediaLive 1.14.35 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-medialive
Type annotations for boto3.MediaLive 1.14.35 service compatible with mypy, VSCode, PyCharm and other tools.
Generated by mypy-boto3-buider 2.2.0.
More information can be found on boto3-stubs page.
How to install
Make sure you have mypy installed and activated in your IDE.
Install boto3-stubs
for MediaLive
service.
python -m pip install boto3-stubs[medialive]
How to use
Client annotations
MediaLiveClient
provides annotations for boto3.client("medialive")
.
import boto3
from mypy_boto3_medialive import MediaLiveClient
from mypy_boto3_medialive.paginator import (
DescribeSchedulePaginator,
ListChannelsPaginator,
ListInputDevicesPaginator,
ListInputSecurityGroupsPaginator,
ListInputsPaginator,
ListMultiplexesPaginator,
ListMultiplexProgramsPaginator,
ListOfferingsPaginator,
ListReservationsPaginator,
)
from mypy_boto3_medialive.type_defs import AacSettingsTypeDef, ...
from mypy_boto3_medialive.waiter import (
ChannelCreatedWaiter,
ChannelDeletedWaiter,
ChannelRunningWaiter,
ChannelStoppedWaiter,
InputAttachedWaiter,
InputDeletedWaiter,
InputDetachedWaiter,
MultiplexCreatedWaiter,
MultiplexDeletedWaiter,
MultiplexRunningWaiter,
MultiplexStoppedWaiter,
)
client: MediaLiveClient = boto3.client("medialive")
# now client usage is checked by mypy and IDE should provide code auto-complete
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: MediaLiveClient = session.client("medialive")
Paginators annotations
mypy_boto3_medialive.paginator
module contains type annotations for all paginators.
client: MediaLiveClient = boto3.client("medialive")
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
describe_schedule_paginator: DescribeSchedulePaginator = client.get_paginator("describe_schedule")
list_channels_paginator: ListChannelsPaginator = client.get_paginator("list_channels")
list_input_devices_paginator: ListInputDevicesPaginator = client.get_paginator("list_input_devices")
list_input_security_groups_paginator: ListInputSecurityGroupsPaginator = client.get_paginator("list_input_security_groups")
list_inputs_paginator: ListInputsPaginator = client.get_paginator("list_inputs")
list_multiplex_programs_paginator: ListMultiplexProgramsPaginator = client.get_paginator("list_multiplex_programs")
list_multiplexes_paginator: ListMultiplexesPaginator = client.get_paginator("list_multiplexes")
list_offerings_paginator: ListOfferingsPaginator = client.get_paginator("list_offerings")
list_reservations_paginator: ListReservationsPaginator = client.get_paginator("list_reservations")
Waiters annotations
mypy_boto3_medialive.waiter
module contains type annotations for all waiters.
client: MediaLiveClient = boto3.client("medialive")
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
channel_created_waiter: ChannelCreatedWaiter = client.get_waiter("channel_created")
channel_deleted_waiter: ChannelDeletedWaiter = client.get_waiter("channel_deleted")
channel_running_waiter: ChannelRunningWaiter = client.get_waiter("channel_running")
channel_stopped_waiter: ChannelStoppedWaiter = client.get_waiter("channel_stopped")
input_attached_waiter: InputAttachedWaiter = client.get_waiter("input_attached")
input_deleted_waiter: InputDeletedWaiter = client.get_waiter("input_deleted")
input_detached_waiter: InputDetachedWaiter = client.get_waiter("input_detached")
multiplex_created_waiter: MultiplexCreatedWaiter = client.get_waiter("multiplex_created")
multiplex_deleted_waiter: MultiplexDeletedWaiter = client.get_waiter("multiplex_deleted")
multiplex_running_waiter: MultiplexRunningWaiter = client.get_waiter("multiplex_running")
multiplex_stopped_waiter: MultiplexStoppedWaiter = client.get_waiter("multiplex_stopped")
Typed dictionations
mypy_boto3_medialive.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
def get_structure() -> AacSettingsTypeDef:
return {
...
}
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
# 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.14.35.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3c3076d2933a52b46fd2f1c69e9f6e7899b6ca4c8975c4b0be59620a9edf5ab |
|
MD5 | b8a331c9647e56fadb1dfd743617444a |
|
BLAKE2b-256 | aedcb17928971361ec583403d47ad813da8df3caa7fd3c6b60486f37c4d22b63 |
Hashes for mypy_boto3_medialive-1.14.35.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29b57f5b0850dc71a3b5b432ae2cabd5fd5e88553876bd5d01579620d48ba8aa |
|
MD5 | e6d04878bae607a32770b8984739c406 |
|
BLAKE2b-256 | 75829fa30f14153dc23081d4156cf708b0ba77258ddd9938601202602631f820 |