Listenclosely is a django-app that works as a middle man to connect instant messaging clients.
Project description
CI:
PyPI:
Docs:
Listenclosely is a django-app that works as a middleman to connect instant messaging clients. Think on a Call Center/Customer Service using using instant messaging… exactly what it does.
It is simple, connects Askers with online Agents until the Chat is considered as terminated and the Agent is released to attend other Asker chats.
It is flexible, so you can define your own strategies to assign Agents to Askers and your own messaging backend services.
Messaging Services integrated:
Documentation
The full documentation is at https://listenclosely.readthedocs.org.
Asker1 is chatting with the Busy Agent
Asker2 try to chat but no free Agent was free so is waiting with a Pending chat to be attended by an agent
Asker3 is opening a chat and Online Agent will be assigned to the chat
Quickstart
Install listenclosely:
pip install listenclosely
Then use it in a project:
import listenclosely
Add it to django apps and migrate:
INSTALLED_APPS = [ ... 'listenclosely', ... ] python manage.py migrate
Select, install and configure service backend
LISTENCLOSELY_MESSAGE_SERVICE_BACKEND = "listenclosely_telegram.service.TelegramMessageServiceBackend"
Define your agent strategy or define your own:
LISTENCLOSELY_AGENT_STRATEGY = 'listenclosely.strategies.first_free.FirstFreeAgentStrategy'
Add step to your celery app:
from listenclosely.celery import ListenCloselyAppStep app.steps['worker'].add(ListenCloselyAppStep)
Start your celery app usign gevent:
celery --app=demo_app.celery:app worker -P gevent
Call listen task or define a celery scheduler to execute:
from listenclosely import tasks tasks.listen.delay()
Features
Connects Askers and Agents in chats to establish a Chat
Strategies to find Agent to attend new Asker chat. Define your own strategies
Messaging Service Backend: Define your own messaging service backend implementations.
Cron tasks for attending pending chats and to terminate obsolete chats to release Agents
Running Tests
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install -r requirements/test.txt (myenv) $ make test
History
0.1.0 (2016-01-14)
First release on PyPI.
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
Built Distribution
File details
Details for the file listenclosely-0.1.2.tar.gz
.
File metadata
- Download URL: listenclosely-0.1.2.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e35fdd08f40e1e1ec708585887259e982a4afe219dbedc7035fdaffa9cfbb83 |
|
MD5 | 27366106c33a13797fc5ddbd2dd8d55f |
|
BLAKE2b-256 | 1391e5d05f78a2493310462c33affab9e80d9beef84bf3d6ff0331d88e30c5ec |
File details
Details for the file listenclosely-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: listenclosely-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad8834ebaf32a2f7cf4424f173a49e1a6286c3a54a4ef930a70d802be1425841 |
|
MD5 | 3c52983854338e6b907ac0f4bf3e6849 |
|
BLAKE2b-256 | c6bb5c1e2584a483c5447c9612a20b9f112339718a40f349aa5afb859bb04f5d |