A simple push notification library for Senergy backend
Project description
notify-mn
Simple push notification library for Python.
Features
- Template-based notifications
- Provider-based architecture
- Token repository abstraction
- Log repository abstraction
Install
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)
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
notify_mn-0.1.0.tar.gz
(9.4 kB
view details)
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
notify_mn-0.1.0-py3-none-any.whl
(11.8 kB
view details)
File details
Details for the file notify_mn-0.1.0.tar.gz.
File metadata
- Download URL: notify_mn-0.1.0.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b5def5f15022569ae83c4bc9f2ce08eeaa5b6772eb73aba2eac4a7c86d5c7a1
|
|
| MD5 |
7edff199979b14a1edcc344eadca5431
|
|
| BLAKE2b-256 |
3c5bc16c08a8b15561d471832093d5913144c91f019f2bbea3f288e0f851f7f7
|
File details
Details for the file notify_mn-0.1.0-py3-none-any.whl.
File metadata
- Download URL: notify_mn-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74ef683ca1a3099c059e8abe315411509feab4ba0713a1c8a256c6f757f46c0a
|
|
| MD5 |
bd9980319ce5bc4a8ecb8314daaca2f1
|
|
| BLAKE2b-256 |
1ddf1fe24b8822f35bbdb5cc5000ec6c530a18cd8a183fc3df6c536597bd3ab9
|