a simple sdk to send notifications on queue for celery tasks
Project description
Kaftar SDK
Usage
Package installation
pip install kaftar
Here is how to set a multiple notification task on Rabbitmq with client package:
from kaftar import Notification
app = Notification('app_name')
recipient = [
{'receiver': 'user@exampe.com', 'uuid': 'b60bf22b-6df8-439b-ba6f-73f203e692d1'},
{'receiver': '+9893002220022', 'uuid': 'b60bf22b-6df8-439b-ba6f-73f203e692d1'}
]
app.send_notification(
{
'subject': 'subject 1',
'content': 'sample 2'
},
recipient,
# send on timestamp
"1696421378")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kaftar-0.0.5.tar.gz
(1.9 kB
view hashes)
Built Distribution
kaftar-0.0.5-py3-none-any.whl
(2.0 kB
view hashes)