Coverage for src/local_deep_research/notifications/__init__.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.16.0, created at 2026-09-06 15:42 +0000

1""" 

2Notification system for Local Deep Research. 

3 

4Supports multiple notification services via Apprise including: 

5- Email (SMTP, Gmail, etc.) 

6- Messaging (Discord, Slack, Telegram, etc.) 

7- SMS (Twilio, AWS SNS, etc.) 

8- Push notifications (Pushover, Gotify, etc.) 

9""" 

10 

11from .exceptions import ( 

12 NotificationError, 

13 ServiceError, 

14 SendError, 

15 RateLimitError, 

16) 

17from .service import NotificationService 

18from .manager import ( 

19 NotificationManager, 

20 NotificationReason, 

21 NotificationResult, 

22) 

23from .templates import NotificationTemplate, EventType 

24from .url_builder import build_notification_url 

25from ..security.url_validator import URLValidator, URLValidationError 

26from .queue_helpers import ( 

27 send_queue_notification, 

28 send_queue_failed_notification, 

29 send_queue_failed_notification_from_session, 

30 send_research_completed_notification_from_session, 

31 send_research_failed_notification_from_session, 

32) 

33 

34__all__ = [ 

35 "NotificationError", 

36 "ServiceError", 

37 "SendError", 

38 "RateLimitError", 

39 "NotificationService", 

40 "NotificationManager", 

41 "NotificationReason", 

42 "NotificationResult", 

43 "NotificationTemplate", 

44 "EventType", 

45 "build_notification_url", 

46 "URLValidator", 

47 "URLValidationError", 

48 "send_queue_notification", 

49 "send_queue_failed_notification", 

50 "send_queue_failed_notification_from_session", 

51 "send_research_completed_notification_from_session", 

52 "send_research_failed_notification_from_session", 

53]