fetch
#
Notices network fetch logic.
Functions#
|
Provided a list of channel notification url/name tuples, return a sequence of |
Return a channel response object. We use this to wrap the response with |
Attributes#
- 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] #
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.