Send Jabber notifications from Django
Project description
Send Jabber notifications from Django
Usage
from django_jabber import send_message
recipients = ['user1', 'user2', ] # without @domain.com part
send_message(u'Hello there', recipients)
# You can also pass this job to your Celery instance
send_message.delay(u'Async message', recipients)
Installation
Install the package via Pypi: pip install django-jabber
Add some lines to your settings.py:
INSTALLED_APPS = (
...
'django_jabber',
...
)
JABBER_HOST = 'jabber.domain.com'
JABBER_USER = 'robot@domain.com'
JABBER_PASSWORD = 'someStr0ngOne!1'
JABBER_USE_TLS = True
JABBER_USE_SSL = False
JABBER_DRY_RUN = False # Useful for testing
Requirements
sleekxmpp
celery
django
Compatibility
We use this package on Python 2.7 and Django 1.7+.
License
GPLv3
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
django-jabber-1.0.1.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for django_jabber-1.0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ff08802f38ae4a4a03bad7021ecdc9a5d57e37c8bbb62e0e621141c8a089aca |
|
MD5 | 545f81cb0e4d802ee4ebe81ed32ac031 |
|
BLAKE2b-256 | 50cda7d6b7c3eb4b28c55818d32c02868488906885f846b20cc41c6d2a4c0c59 |