爱意满满的作品展示区。
messense

基于 Tornado coroutine 和 AsyncHTTPClient 的异步微信公众号接口

  •  
  •   messense ·
    messense · Nov 20, 2015 · 4199 views
    This topic created in 4005 days ago, the information mentioned may be changed or developed.
    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 也不是很熟,粗糙地写的,欢迎提意见和建议~
    3 replies  •  2016-04-23 00:45:10 +08:00
    messense
    messense
    OP
    Nov 20, 2015
    1
    对了,有空再看下能不能用 asyncio 来搞 :-)
    lazygunner
    lazygunner
    Nov 20, 2015
    2
    前排赞一个
    Gimlyu
    Gimlyu
    Apr 23, 2016
    3
    hi , async client ( https://github.com/wechatpy/wechatpy.async.tornado) 的 import `from six.moves.urllib.parse import urlencode` 找不到呀。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1701 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 10:30 · PVG 18:30 · LAX 02:30 · JFK 05:30
    ♥ Do have faith in what you're doing.