fetch#

Notices network fetch logic.

Functions#

get_notice_responses(...)

Provided a list of channel notification url/name tuples, return a sequence of

get_channel_notice_response(...)

Return a channel response object. We use this to wrap the response with

Attributes#

logger

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

Provided a list of channel notification url/name tuples, return a sequence of ChannelNoticeResponse objects.

Parameters:
  • url_and_names -- channel url and the channel name

  • silent -- turn off "loading animation" (defaults to False)

  • max_workers -- increase worker number in thread executor (defaults to 10)

Returns:

Sequence[ChannelNoticeResponse]

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

Return a channel response object. We use this to wrap the response with additional channel information to use. If the response was invalid we suppress/log and error message.