types
#
Implements all conda.notices types.
Classes#
Represents an individual channel notice. |
|
Represents a list of a channel notices, plus some accompanying |
|
Attributes#
- UNDEFINED_MESSAGE_ID = 'undefined'#
- class ChannelNotice#
Bases:
NamedTuple
Represents an individual channel notice.
- created_at: datetime.datetime | None#
- expired_at: datetime.datetime | None#
- to_dict()#
- class ChannelNoticeResultSet#
Bases:
NamedTuple
Represents a list of a channel notices, plus some accompanying metadata such as viewed_channel_notices.
- channel_notices: collections.abc.Sequence[ChannelNotice]#
- class ChannelNoticeResponse#
Bases:
NamedTuple
- property notices: collections.abc.Sequence[ChannelNotice]#
- static _parse_notice_level(level: str | None) conda.base.constants.NoticeLevel #
We use this to validate notice levels and provide reasonable defaults if any are invalid.
- static _parse_iso_timestamp(iso_timestamp: str | None) datetime.datetime | None #
Parse ISO timestamp and fail over to a default value of none.
- classmethod get_cache_key(url: str, cache_dir: pathlib.Path) pathlib.Path #
Returns where this channel response will be cached by hashing the URL.