Registry / web-framework / django-channels

django-channels

JSON →
library0.7.0pypypi✓ verified 81d ago

A Django library for sending notifications through various channels (e.g., HipChat, Slack, Yo). Latest version is 0.7.0, but the project was renamed to kawasemi as of v0.8.0. The rename introduced breaking import changes. PyPI slug is django-channels but the active development continues under the new name. Release cadence is irregular.

pip install django-channels==0.7.0
INSTALL
IMPORT
SIG · DJANGO-CHANNELS
D
django-channels
web-frameworkpythonv0.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

send
from channels import send
from kawasemi.django import send

Minimal example using the old django-channels package (v0.7.0). For the latest, use kawasemi.

# Django integration for django-channels v0.7.0 (old naming) # Note: This is the deprecated version; use kawasemi for current code. # settings.py CHANNELS = { 'hipchat': { 'api_id': os.environ.get('HIPCHAT_API_ID', ''), 'api_token': os.environ.get('HIPCHAT_API_TOKEN', ''), 'room_id': '12345', } } # In your code import django_channels from django_channels import send send('Hello from v0.7.0!')
Debug
Known issues
breakingPackage renamed from django-channels to kawasemi as of v0.8.0. All imports and code must be updated.
fix
pip install kawasemi and change imports to kawasemi.
affects: <0.8.0
breakingIn v1.0.0, the Django API changed from direct module-level send() to kawasemi.django.send().
fix
Use 'from kawasemi.django import send' instead of 'import kawasemi; kawasemi.send()'.
affects: >=1.0.0
deprecatedPython 3.3 support dropped in v2.0.0, Python 3.4 support dropped in v3.0.0.
fix
Upgrade Python to 3.5+ for v2.x, 3.5+ for v3.x.
affects: >=2.0.0, >=3.0.0
Upgrade
Version history
0.7.0latest on PyPI · released Oct 4, 2016
Audit
Dependencies
djangorequiredRequired for Django integration
Agent activity
15 hits · last 30 days
node
14
OpenAI (training)
1
Resources
django-channels — pip install django-channels · libregistry