Messaging for django
Project description
AZ Messaging config
[[TOC]]
pip install az-messaging
settings.py
INSTALLED_APPS = [
# ....
'azmessaging',
# ...
]
AZ_MESSAGING = {
'CLASS': {
'SMS': 'azmessaging.channels.SMSNotificationChannel',
},
'SMS': {
'SERVICE_PROVIDER': {
'SNS': {
'CLASS': 'azmessaging.sms.SMSAPISNSAmazon',
'ROUTING': [
{
'countries': 'UK, US',
'region_name': 'eu-west-1'
},
{
'continents': 'EUROPE, AFRICA',
'region_name': 'eu-west-2'
}
],
'key_id': os.environ.get('AWS_ACCESS_KEY_ID', None),
'access_key': os.environ.get('AWS_SECRET_ACCESS_KEY', None),
'region_name': os.environ.get('AWS_SNS_DEFAULT_REGION', None),
},
'TWILIO': {
'CLASS': 'azmessaging.sms.SMSAPITwilio',
'ROUTING': [
{
'countries': 'DE',
'sender': os.environ.get('TWILIO_EE_SENDER', None),
},
{
'continents': 'ASIA',
'sender': os.environ.get('TWILIO_ASIA_SENDER', None),
}
],
'account_sid': os.environ.get('TWILIO_ACCOUNT_SID', None),
'auth_token': os.environ.get('TWILIO_AUTH_TOKEN', None),
'sender': os.environ.get('TWILIO_DEFAULT_SENDER', None),
},
},
'DEFAULT_SERVICE_PROVIDER': 'SNS', # REQUIRED
'PRIORITY_SERVICE_PROVIDER': [ # REQUIRED
'TWILIO',
'SNS',
]
},
}
Migrate
python manage.py migrate
TODO
-
Documentation
-
Support multiple provider
-
SMS Support
-
SMS Support SNS AWS
-
SMS Support Twilio
-
SMS Base on country
-
SMS Batch
-
Push notification
-
Console
-
Websocket
-
Telegram bot
Develop
License
The MIT License (MIT). Please see License File for more information.
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
az-messaging-1.1.0.tar.gz
(7.4 kB
view hashes)
Built Distribution
Close
Hashes for az_messaging-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63b8fe61341873244009820fe671a34085aed67b3dbfaea3626c6062bfa98a83 |
|
MD5 | 21e48431114a4101ef7d526e0a81cbed |
|
BLAKE2b-256 | 4cdce09212f1f8e7d57712b711cf7c5bf7a4abe803a5195a92b332eb2e6fd873 |