红联Linux门户
Linux帮助

WeRoBot 1.0.0,Python的微信公众号开发框架

发布时间:2016-11-26 14:45:11来源:红联作者:roeta
WeRoBot 1.0.0 发布了。

WeRoBot 1.0.0 中对之前的一部分代码进行了重构,并加入了许多新的功能,修复了大量 bug。具体更新如下:

增加对消息加解密的支持

重写 werobot.messages, 完善对 Event 的支持

将微信消息的 id 属性重命名为 message_id

增加 werobot.reply.SuccessReply

增加 werobot.reply.ImageReply

增加 werobot.reply.VoiceReply

增加 werobot.reply.VideoReply

删除 werobot.reply.create_reply()

为 werobot.reply.WeChatReply 增加 process_args 方法

为 werobot.robot.BaseRoBot 增加 parse_message 方法

为 werobot.robot.BaseRoBot 增加 get_encrypted_reply 方法

删去了 Reply 中过时的 flag

修复 werobot.session.filestorage.FileStorage 在 PyPy 下的兼容性问题

增加 werobot.session.sqlitestorage.SQLiteStorage

将默认的 SessionBackend 切换为 werobot.session.sqlitestorage.SQLiteStorage

将图文消息单个消息的渲染函数放到 werobot.replies.Article 内

取消对 Python2.6, Python3.3 的支持

增加与 Django 1.6+, Flask, Bottle, Tornado 集成的支持

替换 inspect.getargspec()

详细的更新日志可以参考: https://werobot.readthedocs.io/zh_CN/latest/changelog.html#version-1-0-0

文档地址:https://werobot.readthedocs.io/zh_CN/latest/index.html

软件详情:https://github.com/whtsky/WeRoBot/

下载地址:https://github.com/whtsky/WeRoBot/archive/v1.0.0.zip

来自:开源中国社区
文章评论

共有 0 条评论