由mypyboto3buider 4.2.0生成的boto3.MediaLive 1.16.35服务的类型注释

mypy-boto3-medialive的Python项目详细描述


mypy-boto3-medialive

PyPI - mypy-boto3-medialivePyPI - Python VersionDocs

boto3.typed

的类型批注 boto3.MediaLive 1.16.35服务 兼容 VSCodePyCharmEmacsSublime Textmypypyright 以及其他工具。在

mypy-boto3-buider 4.2.0生成。在

更多信息可在boto3-stubs页找到。在

了解它如何帮助查找和修复潜在的错误:

boto3-stubs demo

如何安装

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

  • 安装mypypython -m pip install mypy
  • 在您的环境中安装boto-stubs[medialive]python -m pip install 'boto3-stubs[medialive]'
  • 像往常一样运行mypy

类型检查应该适用于MediaLive服务。 不需要显式的类型注释,请照常编写boto3代码。在

pyright

  • 安装pyrightyarn global add pyright
  • 在您的环境中安装boto-stubs[medialive]python -m pip install 'boto3-stubs[medialive]'
  • 或者,您可以将boto3-stubs安装到typings文件夹中。在

类型检查应该适用于MediaLive服务。 不需要显式的类型注释,请照常编写boto3代码。在

显式类型批注

客户端注释

MediaLiveClientboto3.client("medialive")提供注释。在

^{pr2}$

分页器注释

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{...}

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java游戏!框架伪造应用程序它实际上做什么?   java如何在JavaFx中显示表视图中的即时更改?   对象类的equals()方法的java重载   xpages介绍如何部署java。IBM Notes中的策略更改   java如何访问侦听器中的另一个视图?   java getDefaultDisplay()的替代方法是什么   java opencv匹配模板   java Android Firebase写入数据时的常量超时   在Java中,如何将包含大量空格的数字字符串转换为一系列Int变量。   带有GUI的swing Java模拟无法运行模拟   java NoSuchElementException在特定的Web端上使用无头铬和硒   java对文件进行迭代,即使文件在目录中也会出现“未找到文件”异常。你能告诉我为什么吗?谢谢   递归Java 8,匿名递归嵌套方法   java为什么我看到枚举常量的字段值会被序列化/反序列化?在哪种情况下,枚举中哪些内容没有序列化?   java在运行sonar scanner和Spotbugs规则时出错,用于单片项目?   java如何检查硬件键盘是否可用?(黑莓)   tile游戏动作侦听器循环中的java错误   sockets Java线程池与高请求场景中的新线程   java如何使用Hibernate注释在联接表上创建索引?