ListNeConnect是一个Django应用程序,它作为一个中间人连接即时消息客户端。
listenclosel的Python项目详细描述
置信区间:
PYPI:
文档:
listenclosely是一个django应用程序,充当连接即时消息客户端的中间人。关于呼叫中心/客户服务的思考 使用即时通讯…正是它的作用。
- 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.
信息服务集成:
文档
完整的文档位于https://listenclosely.readthedocs.org。
- Asker1正在与忙碌的代理聊天
- asker2尝试聊天,但没有免费的代理是免费的,因此正在等待代理参与的挂起的聊天
- asker3正在打开聊天室,将为聊天室分配在线代理
快速启动
安装列表关闭:
pip install listenclosely
然后在项目中使用:
import listenclosely
将其添加到django应用程序并迁移:
INSTALLED_APPS = [ ... 'listenclosely', ... ] python manage.py migrate
选择、安装和配置服务后端
LISTENCLOSELY_MESSAGE_SERVICE_BACKEND = "listenclosely_telegram.service.TelegramMessageServiceBackend"
定义代理策略或定义自己的策略:
LISTENCLOSELY_AGENT_STRATEGY = 'listenclosely.strategies.first_free.FirstFreeAgentStrategy'
将步骤添加到芹菜应用程序:
from listenclosely.celery import ListenCloselyAppStep app.steps['worker'].add(ListenCloselyAppStep)
使用ign gevent启动芹菜应用程序:
celery --app=demo_app.celery:app worker -P gevent
调用侦听任务或定义要执行的芹菜调度程序:
from listenclosely import tasks tasks.listen.delay()
功能
- 在聊天中连接askers和agents以建立chat
- 寻找agent参加新的asker聊天的策略。定义自己的策略
- 消息服务后端:定义您自己的消息服务后端实现。
- cron任务,用于出席挂起的聊天并终止过时的聊天以释放agents
运行测试
代码真的有用吗?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install -r requirements/test.txt (myenv) $ make test
历史记录
0.1.0(2016-01-14)
- pypi上的第一个版本。