Skip to main content

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 twilio extra)
  • 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)

Metadata

Release files for iil-platform-notifications 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iil-platform-notifications 0.1.0
File Size Uploaded Provenance
iil_platform_notifications-0.1.0.tar.gz 9.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for iil-platform-notifications 0.1.0
File Interpreter ABI Platform
iil_platform_notifications-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.4 kB

Release files / iil_platform_notifications-0.1.0.tar.gz

Download URL iil_platform_notifications-0.1.0.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
95b30fcc57662f145f971fad96d86009b6e4678d955d8e84e5907bd5a38dfc9d
BLAKE2b-256 checksum
How to use checksums
2b58cfdba905058f13fc7b0ea91333e274f7b93f1e451d722d32505138778e9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / iil_platform_notifications-0.1.0-py3-none-any.whl

Download URL iil_platform_notifications-0.1.0-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e332868b6ae586f8438f96275e271f5611344c732de4a3a26a9c7c8d7e31c8ce
BLAKE2b-256 checksum
How to use checksums
d3593d6bb9ce4f3f879562be4975810e87cdd9417d9c7fe00a9ef2b8470eb425
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for iil-platform-notifications 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page