Quick Start
The Apprise Object
Section titled “The Apprise Object”import appriseapobj = apprise.Apprise()Adding Services (add)
Section titled “Adding Services (add)”The add() method registers notification services to your instance.
# Add a single serviceapobj.add('json://localhost')
# Add multiple services at onceapobj.add([ 'mailto://user:pass@example.com', 'slack://tokenA/tokenB/tokenC'])Sending Notifications (notify)
Section titled “Sending Notifications (notify)”The notify() method sends messages to all registered services.
apobj.notify( title="Server Alert", body="CPU usage is at 99%",)Message Types
Section titled “Message Types”You can categorize your notifications using NotifyType. This often changes the icon or color of the notification (depending on the receiving service).
from apprise import NotifyType
apobj.notify( title="Success", body="Backup completed successfully.", notify_type=NotifyType.SUCCESS)| Icon | Type | Description |
|---|---|---|
![]() | NotifyType.INFO | Default. General information. |
![]() | NotifyType.SUCCESS | Successful operations. |
![]() | NotifyType.WARNING | Issues that aren’t fatal. |
![]() | NotifyType.FAILURE | Critical errors. |
Tagging
Section titled “Tagging”Tagging allows you to send notifications to specific subgroups of services.
1. Assign Tags
# Assign tags when adding servicesapobj.add('slack://...', tag='devops')apobj.add('mailto://...', tag='management')apobj.add('discord://...', tag=['devops', 'management']) # Multiple tags2. Filter by Tags
# Notify ONLY services tagged 'devops'apobj.notify(title="Deploying", body="...", tag="devops")
# Notify services tagged 'devops' OR 'management'apobj.notify(title="Update", body="...", tag=["devops", "management"])Loading Configuration Files
Section titled “Loading Configuration Files”You can use the AppriseConfig object to load URLs from external YAML or Text files instead of hardcoding them.
import apprise
# 1. Create the Config Objectconfig = apprise.AppriseConfig()
# 2. Add configuration sourcesconfig.add('/path/to/my/config.yml')config.add('https://myserver.com/my/apprise/config')
# 3. Create Apprise instance and ingest the configapobj = apprise.Apprise()apobj.add(config)
# 4. Notify as usual (URLs from the file are now loaded)apobj.notify("Loaded from config!")


