Type annotations for boto3.MediaLive 1.14.29 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-medialive
Type annotations for boto3.MediaLive 1.14.29 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.29.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f11dddd7841dd70137d75722e1946d55112e89e542f976b754e8f049e7239557 |
|
MD5 | 182a31094995887339cb9dd4528c5d76 |
|
BLAKE2b-256 | e8f56cd16302e77a8e44e45448fa9486b90c79347082c5a4e4eee17f8c51cab2 |
Hashes for mypy_boto3_medialive-1.14.29.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88875401c02e1a136ce33644bd093d65595917dcf2397d090493643147517225 |
|
MD5 | 1f4977ae0b53a7446875a38f21ccb2ec |
|
BLAKE2b-256 | 9b4522f4683c4e7c52391c15d52cbb5653d8175149676b459cc7d2329c44b87c |