ListNeConnect是一个Django应用程序,它作为一个中间人连接即时消息客户端。

listenclosel的Python项目详细描述


置信区间:

https://img.shields.io/travis/jlmadurga/listenclosely.svgCoverageRequirements Status

PYPI:

https://img.shields.io/pypi/v/listenclosely.svg

文档:

Documentation Status

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

https://raw.github.com/jlmadurga/listenclosely/master/docs/imgs/diagram.png
  • 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()

功能

  • 在聊天中连接askersagents以建立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上的第一个版本。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
为@Nonnull注释参数编写java单元测试   对于JAVA,如何从它自己的类调用插入排序来将数组分类到一个单独的类中?   Java中嵌套SQL查询的字符串解析   java在所有带有特定注释的方法上调用带注释的方面   在Java中将base64转换为PDF   无法在Android上强制转换java getApplicationContext()   雅加达ee Java ee:如何获取我的应用程序的URL?   IntelliJ:如何导入的文件夹。java文件作为库?   多线程Java(FX)在播放一种声音的同时,播放另一种声音   网络爬虫我需要将proto3版本中protobuf生成的java代码添加到nutch 1.7中   使用JAXRS注释资源的java Restlet客户端   java如何查找给定月份的日期范围   java Minecraft Bukkit插件:我的小游戏传送机不工作   Java Excel搜索和数组列表工作不正常