Buckets:

download
raw
1.15 kB
"""Notification settings configuration."""
from __future__ import annotations
from pydantic_settings import BaseSettings
class NotificationSettings(BaseSettings):
"""Settings for notification infrastructure.
All settings can be overridden via environment variables
with the NOTIFICATION_ prefix.
Example:
NOTIFICATION_DEFAULT_CHANNELS='["in_app", "email"]'
NOTIFICATION_REALTIME_ENABLED=true
NOTIFICATION_RETENTION_DAYS=90
"""
notification_default_channels: list[str] = ["in_app"]
"""Default channels for notifications when not specified."""
notification_realtime_enabled: bool = True
"""Enable WebSocket real-time delivery."""
notification_email_enabled: bool = True
"""Enable email delivery channel."""
notification_push_enabled: bool = False
"""Enable push notification channel (FCM/APNs)."""
notification_max_per_page: int = 50
"""Maximum notifications per page in list queries."""
notification_retention_days: int = 90
"""Days to keep notifications before cleanup."""
model_config = {"env_prefix": "NOTIFICATION_", "extra": "ignore"}

Xet Storage Details

Size:
1.15 kB
·
Xet hash:
5d5c2dfb1e2ea5094fcc7dcd4803a62a5fdd5987d308e788c97902b65a53a233

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.