Skip to main content

Send Jabber notifications from Django

Project description

Send Jabber notifications from Django

https://travis-ci.org/alexmorozov/django-jabber.svg?branch=master

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

Authors

django-jabber was written by Alex Morozov.

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

django-jabber-1.0.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_jabber-1.0.1-py2-none-any.whl (4.5 kB view details)

Uploaded Python 2

File details

Details for the file django-jabber-1.0.1.tar.gz.

File metadata

  • Download URL: django-jabber-1.0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-jabber-1.0.1.tar.gz
Algorithm Hash digest
SHA256 058497881bca72209afc4220651585ae16236a53a67ec0943fe239b29240186e
MD5 b5e96944ca74d652988d3eaf8cc3cfd1
BLAKE2b-256 ebce1b811804ca967f9534ab305bc646b226b00cc8a6fdd161042d8444ac4c3a

See more details on using hashes here.

File details

Details for the file django_jabber-1.0.1-py2-none-any.whl.

File metadata

File hashes

Hashes for django_jabber-1.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 6ff08802f38ae4a4a03bad7021ecdc9a5d57e37c8bbb62e0e621141c8a089aca
MD5 545f81cb0e4d802ee4ebe81ed32ac031
BLAKE2b-256 50cda7d6b7c3eb4b28c55818d32c02868488906885f846b20cc41c6d2a4c0c59

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page