Platform-wide multi-channel notification registry (ADR-088)
Project description
platform-notifications
Platform-wide multi-channel notification registry (ADR-088)
Overview
Unified notification system with channel abstraction, Celery-First async delivery, audit logging, and thread-safe registry pattern.
Installation
pip install -e packages/platform-notifications
pip install -e "packages/platform-notifications[sms]" # for Twilio SMS
Usage
from platform_notifications.service import NotificationService, Notification
NotificationService.send(Notification(
tenant_id=request.tenant_id,
channel="email",
recipient="user@example.com",
subject="Welcome",
body="Hello from the platform!",
source_app="wedding-hub",
source_event="rsvp_confirmation",
))
Built-in Channels
- email — Django
send_mail - sms — Twilio (requires
twilioextra) - webhook — Generic HTTPS POST via
httpx
Configuration
# config/settings/base.py
PLATFORM_NOTIFICATIONS = {
"DEFAULT_CHANNELS": ["email"],
"RETRY_MAX": 3,
"RETRY_BACKOFF": True,
"RETRY_BACKOFF_MAX": 300,
"LOG_RETENTION_DAYS": 90,
}
Database
Run: python manage.py migrate platform_notifications
Related ADRs
- ADR-088: Notification Registry
- ADR-045: Secret Management (Twilio, Discord, Telegram)
- ADR-072: Schema Isolation (Row-Level deviation documented)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iil_platform_notifications-0.1.0.tar.gz.
File metadata
- Download URL: iil_platform_notifications-0.1.0.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95b30fcc57662f145f971fad96d86009b6e4678d955d8e84e5907bd5a38dfc9d
|
|
| MD5 |
6e3fe4c4494a214e92bc4e335262e9f5
|
|
| BLAKE2b-256 |
2b58cfdba905058f13fc7b0ea91333e274f7b93f1e451d722d32505138778e9c
|
File details
Details for the file iil_platform_notifications-0.1.0-py3-none-any.whl.
File metadata
- Download URL: iil_platform_notifications-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e332868b6ae586f8438f96275e271f5611344c732de4a3a26a9c7c8d7e31c8ce
|
|
| MD5 |
39d30a96fafe2d2e187e95745add2fdb
|
|
| BLAKE2b-256 |
d3593d6bb9ce4f3f879562be4975810e87cdd9417d9c7fe00a9ef2b8470eb425
|