Skip to content

API for Wechat massive platform based on tornado. 基于tornado的微信公众号接口

License

Notifications You must be signed in to change notification settings

PyCN/itchatmp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

itchatmp

py27 py35 English version

itchatmp是一个开源的微信公众号接口,使用python调用微信公众号从未如此简单。

itchatmp基于tornado框架,满足效率需求。支持普通使用、nginx反向代理与wsgi。

Installation

可以通过本命令安装itchatmp:

pip install itchatmp

Simple uses

有了itchatmp,如果你想要回复发给自己的文本消息,只需要这样:

import itchatmp

itchatmp.update_config(itchatmp.WechatConfig(
    token='yourToken',
    appId = 'yourAppId',
    appSecret = 'yourAppSecret'))

@itchatmp.msg_register(itchatmp.content.TEXT)
def text_reply(msg):
    return msg['content']

itchatmp.run()

一些进阶应用可以在Advanced uses中看到,或者你也可以阅览文档

Have a try

这是一个基于这一项目的开源小机器人,百闻不如一见,有兴趣可以尝试一下。

QRCode

Screenshots

demo

Advanced uses

Building

Comments

如果有什么问题或者建议都可以在这个Issue和我讨论

当然也可以加入我们新建的QQ群讨论:438747166

About

API for Wechat massive platform based on tornado. 基于tornado的微信公众号接口

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%