Type annotations for boto3.MediaLive 1.14.20 service, generated by mypy-boto3-buider 2.2.0
Project description
mypy-boto3-medialive
Type annotations for boto3.MediaLive 1.14.20 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.20.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4acdf923edb5d29feb0890b47c5d65c7a9f2521f4c72217523182b34478cea68 |
|
MD5 | 4936ab301c8dd9bf23dc86f104b5dc81 |
|
BLAKE2b-256 | affcc04b378349407c4652d5114319515e8eabcfadaad2ddca013591dfd6f67b |
Hashes for mypy_boto3_medialive-1.14.20.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6f2d468aad85e65730dc8b719d9e136b53b74adfb52db77c437cecdc70f6d13 |
|
MD5 | 17c26182f403d422148324c618843cf2 |
|
BLAKE2b-256 | 24293bb01aa2215422c7f74ce0be3d230ccd094e1a20699c7926bd377385bf20 |