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.1a1.tar.gz
(7.4 kB
view hashes)
Built Distribution
Close
Hashes for az_messaging-1.1.1a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09c92c3eb72733918826a23ea1c8c4cc0c16868c80097cc0941fb89151d2a4d4 |
|
MD5 | ad75892842cda9038f65d653fab21171 |
|
BLAKE2b-256 | d884bddfd58a444c91a1dc889f0a52dd3754394daf5d0382a7b8aff7488572a6 |