fetch#

通知网络获取逻辑。

函数#

get_notice_responses(...)

提供频道通知 url/名称元组列表,返回一个序列

get_channel_notice_response(...)

返回频道响应对象。我们使用它来包装响应,并附加

属性#

logger#
get_notice_responses(url_and_names: collections.abc.Sequence[tuple[str, str]], silent: bool = False, max_workers: int = 10) collections.abc.Sequence[conda.notices.types.ChannelNoticeResponse]#

提供频道通知 url/名称元组列表,返回 ChannelNoticeResponse 对象序列。

参数:
  • url_and_names -- 频道 URL 和频道名称

  • silent -- 关闭“加载动画”(默认为 False)

  • max_workers -- 增加线程执行器中的工作线程数(默认为 10)

返回:

Sequence[ChannelNoticeResponse]

get_channel_notice_response(url: str, name: str) conda.notices.types.ChannelNoticeResponse | None#

返回频道响应对象。我们使用它来包装响应,并附加要使用的其他频道信息。如果响应无效,我们将抑制/记录错误消息。