https://github.com/messense/wechatpy/tree/async-client
暂时还只是 Proof of Concept 阶段。
基于 Tornado coroutine 和 AsyncHTTPClient 实现了异步的微信开放平台公众号的相关接口调用,实现部分代码: https://github.com/messense/wechatpy/blob/async-client/wechatpy/client/async/tornado.py
Example code: https://github.com/messense/wechatpy/blob/async-client/examples/async-client/app.py
参考自 lastfmclient 的实现方式: https://github.com/jkbrzt/lastfmclient/blob/master/lastfmclient/async.py
我对 Tornado 也不是很熟,粗糙地写的,欢迎提意见和建议~
暂时还只是 Proof of Concept 阶段。
基于 Tornado coroutine 和 AsyncHTTPClient 实现了异步的微信开放平台公众号的相关接口调用,实现部分代码: https://github.com/messense/wechatpy/blob/async-client/wechatpy/client/async/tornado.py
Example code: https://github.com/messense/wechatpy/blob/async-client/examples/async-client/app.py
参考自 lastfmclient 的实现方式: https://github.com/jkbrzt/lastfmclient/blob/master/lastfmclient/async.py
我对 Tornado 也不是很熟,粗糙地写的,欢迎提意见和建议~