Async Chatter App Based on Webscokets
Project description
Async Chatter App Based on Webscokets
Documentation
The full documentation is at https://django-chats.readthedocs.io.
Quickstart
Install chatter:
pip install django-chats
Add it to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'chatter.apps.chatter',
...
)
Add chatter’s URL patterns:
from django.urls import re_path, include
from chatter import urls as chatter_urls
from chatter.api import urls as chatter_api_urls
urlpatterns = [
...
re_path(r'^', include(chatter_urls)),
re_path(r'^', include(chatter_api_urls)),
...
]
Redis need to be configured for group chatting:
import platform
# Configure the redis server
CHANNEL_LAYERS = {
'default': {
'BACKEND': 'channels_redis.core.RedisChannelLayer',
'CONFIG': {
"hosts": [('192.168.99.100', 6379) if platform.system()=='Windows' else ('127.0.0.1', 6379)],
},
},
}
Official acount username could be specified or by default: “official_user”
Features
Support Realtime communication through ASGI compatible Server
Automatically generated official account if not specified
Message implemented using django-restframework
EmojiPicker Intergration(credit:OneSignal)
Running Tests
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install tox (myenv) $ tox
Development commands
pip install -r requirements_dev.txt invoke -l
History
0.1.0 (2020-09-15)
First release on PyPI.
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
Built Distribution
File details
Details for the file django-chats-0.2.2.tar.gz
.
File metadata
- Download URL: django-chats-0.2.2.tar.gz
- Upload date:
- Size: 3.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 068260b8b7c7f0e9e407a033244ae8406413866e983a554a333899717103ea8c |
|
MD5 | d1c138c9209e6e594fc8ef7cd2f1be14 |
|
BLAKE2b-256 | e3ca527b32090e1d35dc0b7561c065c9a348a0cd906d325a3062729c2ab522fd |
File details
Details for the file django_chats-0.2.2-py2.py3-none-any.whl
.
File metadata
- Download URL: django_chats-0.2.2-py2.py3-none-any.whl
- Upload date:
- Size: 6.3 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71b0403524bb8055398e66c7d13f5558c620b82aa3006487a7ad34405abbaf88 |
|
MD5 | ea181a1245975930b6d386bb6656684c |
|
BLAKE2b-256 | 553297d5fe8731ce2aa24fe47d7d9f9676e0ac309ec227b1b5bf30e5068238b3 |