Python client for Aasaanjobs Notification Hub
Project description
Python Aasaanjobs NotificationHub Client
Python SDK to communicate with Aasaanjobs Notification Hub and send notifications to users.
Supported Notification Channels
- Simple Messaging Service (SMS)
- Mobile Push (FCM)
Installation
pip install aaasaanjobs-notificationhub
Usage
Each notification is referred to as Task in this library. A single Task can contain multiple channels, i.e., a single Task can contain both Email and WhatsApp notification data. This Task is then validated via Protocol Buffers and pushed to corresponding Notification Hub Amazon SQS queue.
Configuration
Each application which uses this library must configure Amazon SQS configurations to successfully send notification task to Hub.
The following keys can be defined in the settings module if Django application or can be defined as environment variables
Setting | Description |
---|---|
NOTIFICATION_HUB_SQS_ACCESS_KEY_ID | Access Key of the IAM role which has access to the Hub SQS |
NOTIFICATION_HUB_SQS_SECRET_ACCESS_KEY | Secret Access Key of the IAM role which has access to the Hub SQS |
NOTIFICATION_HUB_SQS_REGION | AWS Region where the Hub SQS resides |
NOTIFICATION_HUB_SQS_QUEUE_NAME | Name of the Hub SQS Queue |
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
Hashes for aasaanjobs-notificationhub-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76895985eefeea7c86f3fc55b5b1f6ff56625759456f2014b8dc1a5d2618fc06 |
|
MD5 | a7ad294c5eb71dc4bdf8a95d7b8d81f3 |
|
BLAKE2b-256 | 95666451d842372898d954147cdeceb610d63c729cdc5169b923f3f87d295a3c |