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

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

  •  
  •   messense ·
    messense · Nov 20, 2015 · 3702 views
    This topic created in 3832 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
        1
    messense  
    OP
       Nov 20, 2015
    对了,有空再看下能不能用 asyncio 来搞 :-)
    lazygunner
        2
    lazygunner  
       Nov 20, 2015
    前排赞一个
    Gimlyu
        3
    Gimlyu  
       Apr 23, 2016
    hi , async client ( https://github.com/wechatpy/wechatpy.async.tornado) 的 import `from six.moves.urllib.parse import urlencode` 找不到呀。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3095 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 11:36 · PVG 19:36 · LAX 04:36 · JFK 07:36
    ♥ Do have faith in what you're doing.