NotificationChannel#

class ansys.tools.common.notifications.NotificationChannel#

Bases: str, enum.Enum

Well-known apprise notification channel URL schemes.

Each member’s value is the scheme prefix of the apprise URL for that channel. Members with self-contained URLs (WINDOWS, MACOS, DBUS) can be used directly. Members that require credentials or IDs (SLACK, MSTEAMS, MAILTO, MAILTOS) serve as the scheme prefix — concatenate your tokens to form the full URL:

NotificationChannel.SLACK + "token/channel"
NotificationChannel.MAILTO + "user:pass@gmail.com"

A plain str is always accepted wherever a channel is expected.

Overview#

WINDOWS

Windows 10/11 native toast notification.

MACOS

macOS Notification Center.

DBUS

Linux desktop notification via D-Bus (GNOME, KDE, etc.).

MAILTO

Gmail or other IMAP provider. Append user:pass@gmail.com.

MAILTOS

Corporate SMTP with TLS. Append user:pass@smtp.corp.com.

SLACK

Slack channel. Append token/channel.

MSTEAMS

Microsoft Teams incoming webhook. Append A/B/C/D.

Import detail#

from ansys.tools.common.notifications import NotificationChannel

Attribute detail#

NotificationChannel.WINDOWS = 'windows://'#

Windows 10/11 native toast notification.

NotificationChannel.MACOS = 'macosx://'#

macOS Notification Center.

NotificationChannel.DBUS = 'dbus://'#

Linux desktop notification via D-Bus (GNOME, KDE, etc.).

NotificationChannel.MAILTO = 'mailto://'#

Gmail or other IMAP provider. Append user:pass@gmail.com.

NotificationChannel.MAILTOS = 'mailtos://'#

Corporate SMTP with TLS. Append user:pass@smtp.corp.com.

NotificationChannel.SLACK = 'slack://'#

Slack channel. Append token/channel.

NotificationChannel.MSTEAMS = 'msteams://'#

Microsoft Teams incoming webhook. Append A/B/C/D.