Metadata-Version: 2.4
Name: notify-mn
Version: 0.1.0
Summary: A simple push notification library for Senergy backend
Author: c1rtkaal
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: firebase-admin>=6.5.0
Requires-Dist: python-dotenv>=1.0.1
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: pytest-cov>=5.0; extra == "dev"
Dynamic: license-file

# notify-mn

Simple push notification library for Python.

## Features

- Template-based notifications
- Provider-based architecture
- Token repository abstraction
- Log repository abstraction

## Install

```bash
from notify_mn import FCMProvider, NotificationManager, NotificationService
from your_backend.repositories import DBTokenRepository, DBNotificationLogRepository

provider = FCMProvider(service_account_path=settings.FIREBASE_SERVICE_ACCOUNT_PATH)

manager = NotificationManager(
    provider=provider,
    token_repo=DBTokenRepository(db_session),
    log_repo=DBNotificationLogRepository(db_session),
    max_retries=2,
)

notification_service = NotificationService(manager)
