由mypyboto3buider 4.2.0生成的boto3.MediaLive 1.16.35服务的类型注释
mypy-boto3-medialive的Python项目详细描述
mypy-boto3-medialive
的类型批注 boto3.MediaLive 1.16.35服务 兼容 VSCode, PyCharm, Emacs, Sublime Text, mypy, pyright 以及其他工具。在
更多信息可在boto3-stubs页找到。在
了解它如何帮助查找和修复潜在的错误:
如何安装
为MediaLive
服务安装boto3-stubs
。在
python -m pip install boto3-stubs[medialive]
使用
VSCode
- 安装Python extension
- 安装Pylance extension
- 将
Pylance
设置为Python语言服务器 - 在您的环境中安装
boto-stubs[medialive]
:python -m pip install 'boto3-stubs[medialive]'
类型检查和自动完成都应该适用于MediaLive
服务。
不需要显式的类型注释,请照常编写boto3
代码。在
PyCharm
- 在您的环境中安装
boto-stubs[medialive]
:python -m pip install 'boto3-stubs[medialive]'
类型检查和自动完成都应该适用于MediaLive
服务。
不需要显式的类型注释,请照常编写boto3
代码。
自动完成在大型项目或安装了大量boto3-stubs
子模块时可能会很慢。在
其他IDE
没有经过测试,但是只要您的IDE支持mypy
或{
mypy
- 安装
mypy
:python -m pip install mypy
- 在您的环境中安装
boto-stubs[medialive]
:python -m pip install 'boto3-stubs[medialive]'
- 像往常一样运行
mypy
类型检查应该适用于MediaLive
服务。
不需要显式的类型注释,请照常编写boto3
代码。在
pyright
- 安装
pyright
:yarn global add pyright
- 在您的环境中安装
boto-stubs[medialive]
:python -m pip install 'boto3-stubs[medialive]'
- 或者,您可以将
boto3-stubs
安装到typings
文件夹中。在
类型检查应该适用于MediaLive
服务。
不需要显式的类型注释,请照常编写boto3
代码。在
显式类型批注
客户端注释
MediaLiveClient
为boto3.client("medialive")
提供注释。在
分页器注释
mypy_boto3_medialive.paginator
模块包含所有分页器的类型注释。在
frommypy_boto3_medialiveimportMediaLiveClientfrommypy_boto3_medialive.paginatorimport(DescribeSchedulePaginator,ListChannelsPaginator,ListInputDevicesPaginator,ListInputDeviceTransfersPaginator,ListInputSecurityGroupsPaginator,ListInputsPaginator,ListMultiplexesPaginator,ListMultiplexProgramsPaginator,ListOfferingsPaginator,ListReservationsPaginator,)client:MediaLiveClient=boto3.client("medialive")# Explicit type annotations are optional here# Type should be correctly discovered by mypy and IDEs# VSCode requires explicit type annotationsdescribe_schedule_paginator:DescribeSchedulePaginator=client.get_paginator("describe_schedule")list_channels_paginator:ListChannelsPaginator=client.get_paginator("list_channels")list_input_device_transfers_paginator:ListInputDeviceTransfersPaginator=client.get_paginator("list_input_device_transfers")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")
服务员注释
mypy_boto3_medialive.waiter
模块包含所有等待者的类型注释。在
frommypy_boto3_medialiveimportMediaLiveClientfrommypy_boto3_medialive.waiterimport(ChannelCreatedWaiter,ChannelDeletedWaiter,ChannelRunningWaiter,ChannelStoppedWaiter,InputAttachedWaiter,InputDeletedWaiter,InputDetachedWaiter,MultiplexCreatedWaiter,MultiplexDeletedWaiter,MultiplexRunningWaiter,MultiplexStoppedWaiter,)client:MediaLiveClient=boto3.client("medialive")# Explicit type annotations are optional here# Type should be correctly discovered by mypy and IDEs# VSCode requires explicit type annotationschannel_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")
键入的措辞
mypy_boto3_medialive.type_defs
模块包含组合的结构和形状
以进行额外的类型检查。在
frommypy_boto3_medialive.type_defsimport(AacSettingsTypeDef,Ac3SettingsTypeDef,AncillarySourceSettingsTypeDef,ArchiveContainerSettingsTypeDef,ArchiveGroupSettingsTypeDef,ArchiveOutputSettingsTypeDef,AudioChannelMappingTypeDef,AudioCodecSettingsTypeDef,AudioDescriptionTypeDef,AudioLanguageSelectionTypeDef,AudioNormalizationSettingsTypeDef,AudioOnlyHlsSettingsTypeDef,AudioPidSelectionTypeDef,AudioSelectorSettingsTypeDef,AudioSelectorTypeDef,AudioSilenceFailoverSettingsTypeDef,AudioTrackSelectionTypeDef,AudioTrackTypeDef,AutomaticInputFailoverSettingsTypeDef,AvailBlankingTypeDef,AvailConfigurationTypeDef,AvailSettingsTypeDef,BatchDeleteResponseTypeDef,BatchFailedResultModelTypeDef,BatchScheduleActionCreateRequestTypeDef,BatchScheduleActionCreateResultTypeDef,BatchScheduleActionDeleteRequestTypeDef,BatchScheduleActionDeleteResultTypeDef,BatchStartResponseTypeDef,BatchStopResponseTypeDef,BatchSuccessfulResultModelTypeDef,BatchUpdateScheduleResponseTypeDef,BlackoutSlateTypeDef,BurnInDestinationSettingsTypeDef,CaptionDescriptionTypeDef,CaptionDestinationSettingsTypeDef,CaptionLanguageMappingTypeDef,CaptionSelectorSettingsTypeDef,CaptionSelectorTypeDef,CdiInputSpecificationTypeDef,ChannelEgressEndpointTypeDef,ChannelSummaryTypeDef,ChannelTypeDef,CreateChannelResponseTypeDef,CreateInputResponseTypeDef,CreateInputSecurityGroupResponseTypeDef,CreateMultiplexProgramResponseTypeDef,CreateMultiplexResponseTypeDef,DeleteChannelResponseTypeDef,DeleteMultiplexProgramResponseTypeDef,DeleteMultiplexResponseTypeDef,DeleteReservationResponseTypeDef,DescribeChannelResponseTypeDef,DescribeInputDeviceResponseTypeDef,DescribeInputDeviceThumbnailResponseTypeDef,DescribeInputResponseTypeDef,DescribeInputSecurityGroupResponseTypeDef,DescribeMultiplexProgramResponseTypeDef,DescribeMultiplexResponseTypeDef,DescribeOfferingResponseTypeDef,DescribeReservationResponseTypeDef,DescribeScheduleResponseTypeDef,DvbNitSettingsTypeDef,DvbSdtSettingsTypeDef,DvbSubDestinationSettingsTypeDef,DvbSubSourceSettingsTypeDef,DvbTdtSettingsTypeDef,Eac3SettingsTypeDef,EbuTtDDestinationSettingsTypeDef,EmbeddedSourceSettingsTypeDef,EncoderSettingsTypeDef,FailoverConditionSettingsTypeDef,FailoverConditionTypeDef,FeatureActivationsTypeDef,FecOutputSettingsTypeDef,FixedModeScheduleActionStartSettingsTypeDef,Fmp4HlsSettingsTypeDef,FollowModeScheduleActionStartSettingsTypeDef,FrameCaptureGroupSettingsTypeDef,FrameCaptureOutputSettingsTypeDef,FrameCaptureSettingsTypeDef,GlobalConfigurationTypeDef,H264ColorSpaceSettingsTypeDef,H264FilterSettingsTypeDef,H264SettingsTypeDef,H265ColorSpaceSettingsTypeDef,H265FilterSettingsTypeDef,H265SettingsTypeDef,Hdr10SettingsTypeDef,HlsAkamaiSettingsTypeDef,HlsBasicPutSettingsTypeDef,HlsCdnSettingsTypeDef,HlsGroupSettingsTypeDef,HlsId3SegmentTaggingScheduleActionSettingsTypeDef,HlsInputSettingsTypeDef,HlsMediaStoreSettingsTypeDef,HlsOutputSettingsTypeDef,HlsSettingsTypeDef,HlsTimedMetadataScheduleActionSettingsTypeDef,HlsWebdavSettingsTypeDef,InputAttachmentTypeDef,InputChannelLevelTypeDef,InputClippingSettingsTypeDef,InputDestinationRequestTypeDef,InputDestinationTypeDef,InputDestinationVpcTypeDef,InputDeviceConfigurableSettingsTypeDef,InputDeviceHdSettingsTypeDef,InputDeviceNetworkSettingsTypeDef,InputDeviceRequestTypeDef,InputDeviceSettingsTypeDef,InputDeviceSummaryTypeDef,InputDeviceUhdSettingsTypeDef,InputLocationTypeDef,InputLossBehaviorTypeDef,InputLossFailoverSettingsTypeDef,InputPrepareScheduleActionSettingsTypeDef,InputSecurityGroupTypeDef,InputSettingsTypeDef,InputSourceRequestTypeDef,InputSourceTypeDef,InputSpecificationTypeDef,InputSwitchScheduleActionSettingsTypeDef,InputTypeDef,InputVpcRequestTypeDef,InputWhitelistRuleCidrTypeDef,InputWhitelistRuleTypeDef,KeyProviderSettingsTypeDef,ListChannelsResponseTypeDef,ListInputDevicesResponseTypeDef,ListInputDeviceTransfersResponseTypeDef,ListInputSecurityGroupsResponseTypeDef,ListInputsResponseTypeDef,ListMultiplexesResponseTypeDef,ListMultiplexProgramsResponseTypeDef,ListOfferingsResponseTypeDef,ListReservationsResponseTypeDef,ListTagsForResourceResponseTypeDef,M2tsSettingsTypeDef,M3u8SettingsTypeDef,MediaConnectFlowRequestTypeDef,MediaConnectFlowTypeDef,MediaPackageGroupSettingsTypeDef,MediaPackageOutputDestinationSettingsTypeDef,Mp2SettingsTypeDef,Mpeg2FilterSettingsTypeDef,Mpeg2SettingsTypeDef,MsSmoothGroupSettingsTypeDef,MsSmoothOutputSettingsTypeDef,MultiplexMediaConnectOutputDestinationSettingsTypeDef,MultiplexOutputDestinationTypeDef,MultiplexOutputSettingsTypeDef,MultiplexProgramChannelDestinationSettingsTypeDef,MultiplexProgramPacketIdentifiersMapTypeDef,MultiplexProgramPipelineDetailTypeDef,MultiplexProgramServiceDescriptorTypeDef,MultiplexProgramSettingsTypeDef,MultiplexProgramSummaryTypeDef,MultiplexProgramTypeDef,MultiplexSettingsSummaryTypeDef,MultiplexSettingsTypeDef,MultiplexStatmuxVideoSettingsTypeDef,MultiplexSummaryTypeDef,MultiplexTypeDef,MultiplexVideoSettingsTypeDef,NetworkInputSettingsTypeDef,NielsenConfigurationTypeDef,OfferingTypeDef,OutputDestinationSettingsTypeDef,OutputDestinationTypeDef,OutputGroupSettingsTypeDef,OutputGroupTypeDef,OutputLocationRefTypeDef,OutputSettingsTypeDef,OutputTypeDef,PaginatorConfigTypeDef,PauseStateScheduleActionSettingsTypeDef,PipelineDetailTypeDef,PipelinePauseStateSettingsTypeDef,PurchaseOfferingResponseTypeDef,RemixSettingsTypeDef,ReservationResourceSpecificationTypeDef,ReservationTypeDef,ResponseMetadata,RtmpGroupSettingsTypeDef,RtmpOutputSettingsTypeDef,ScheduleActionSettingsTypeDef,ScheduleActionStartSettingsTypeDef,ScheduleActionTypeDef,Scte20SourceSettingsTypeDef,Scte27SourceSettingsTypeDef,Scte35DeliveryRestrictionsTypeDef,Scte35DescriptorSettingsTypeDef,Scte35DescriptorTypeDef,Scte35ReturnToNetworkScheduleActionSettingsTypeDef,Scte35SegmentationDescriptorTypeDef,Scte35SpliceInsertScheduleActionSettingsTypeDef,Scte35SpliceInsertTypeDef,Scte35TimeSignalAposTypeDef,Scte35TimeSignalScheduleActionSettingsTypeDef,StandardHlsSettingsTypeDef,StartChannelResponseTypeDef,StartMultiplexResponseTypeDef,StartTimecodeTypeDef,StaticImageActivateScheduleActionSettingsTypeDef,StaticImageDeactivateScheduleActionSettingsTypeDef,StaticKeySettingsTypeDef,StopChannelResponseTypeDef,StopMultiplexResponseTypeDef,StopTimecodeTypeDef,TeletextSourceSettingsTypeDef,TemporalFilterSettingsTypeDef,TimecodeConfigTypeDef,TransferringInputDeviceSummaryTypeDef,TtmlDestinationSettingsTypeDef,UdpContainerSettingsTypeDef,UdpGroupSettingsTypeDef,UdpOutputSettingsTypeDef,UpdateChannelClassResponseTypeDef,UpdateChannelResponseTypeDef,UpdateInputDeviceResponseTypeDef,UpdateInputResponseTypeDef,UpdateInputSecurityGroupResponseTypeDef,UpdateMultiplexProgramResponseTypeDef,UpdateMultiplexResponseTypeDef,UpdateReservationResponseTypeDef,VideoBlackFailoverSettingsTypeDef,VideoCodecSettingsTypeDef,VideoDescriptionTypeDef,VideoSelectorPidTypeDef,VideoSelectorProgramIdTypeDef,VideoSelectorSettingsTypeDef,VideoSelectorTypeDef,WaiterConfigTypeDef,WavSettingsTypeDef,)defget_structure()->AacSettingsTypeDef:return{...}
- 项目
标签: