Skip to main content

Python Aasaanjobs/Waahjobs NotificationHub Client

Build Status codecov

Python SDK to communicate with Aasaanjobs/Waahjobs Notification Hub and send notifications to users.

Supported Notification Channels

  • Short Messaging Service (SMS)
  • Email
  • WhatsApp
  • Mobile Push (FCM)

Installation

pip install aasaanjobs-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.

For Transactional notifications NOTIFICATION_HUB_SQS_QUEUE_NAME environment variable should be configured.

For Marketing notifications NOTIFICATION_HUB_MARKETING_SQS_QUEUE_NAME environment variable should be configured.

For OTP notifications NOTIFICATION_HUB_OTP_SQS_QUEUE_NAME environment variable should be configured.

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
NOTIFICATION_HUB_MARKETING_SQS_QUEUE_NAME Name of the Hub Marketing SQS Queue
NOTIFICATION_HUB_OTP_SQS_QUEUE_NAME Name of the Hub OTP SQS Queue

Release files for aasaanjobs-notificationhub 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aasaanjobs-notificationhub 1.4.0
File Size Uploaded
aasaanjobs-notificationhub-1.4.0.tar.gz 16.1 kB Details

Release files / aasaanjobs-notificationhub-1.4.0.tar.gz

Download URL aasaanjobs-notificationhub-1.4.0.tar.gz
Size 16.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bfc39313869a41d4ea2e9de05d2db47b4c374b71d4b9602732c4816cfa535710
BLAKE2b-256 checksum
How to use checksums
2b2b4f40e75177ab36fe106d20d8779318d20531a899c0a096ffbaa5c241cf91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.5

Release history Release notifications | RSS feed

This release

1.4.0 This release

1 release file

1.3.0

1 release file

1.2.0

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.8

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

0.9.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page