V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
linhanqiu
V2EX  ›  Python

requests 的异步版本 grequests,大家有用过的吗,效果怎么样,和 aiohttp 相比呢

  •  
  •   linhanqiu · 2018-04-04 19:12:32 +08:00 · 4248 次点击
    这是一个创建于 2185 天前的主题,其中的信息可能已经有所发展或是发生改变。

    最近偶然发现了这个库,不知道使用起来的效果怎么样,不过是 K 神的,感觉不会差到哪里去?大家有使用这个库在生产方面吗,有建议吗

    5 条回复    2018-04-06 00:44:35 +08:00
    wzwwzw
        1
    wzwwzw  
       2018-04-04 19:13:39 +08:00
    为什么不用 asyncio + aiohttp 这个好像作者六个月没有更新了。aiohttp 已经到 3.0 了。
    linhanqiu
        2
    linhanqiu  
    OP
       2018-04-04 19:24:12 +08:00
    @wzwwzw 现在是在使用 asyncio + aiohttp 这个方案,grequests 也只是偶然看到的,哈哈,我也是前两周刚刚发现 aiohttp 更新了。
    orangeade
        3
    orangeade  
       2018-04-04 19:44:03 +08:00 via Android
    requests 作者新项目 requests-core 了解一下
    Arnie97
        4
    Arnie97  
       2018-04-05 00:16:01 +08:00 via Android
    直接用 gevent.monkey.patch_all()也行啊
    liyuanji1002
        5
    liyuanji1002  
       2018-04-06 00:44:35 +08:00
    requests 的带异步的新版本现在在开发当中, 等一等应该就有了.
    参考: https://www.kennethreitz.org/requests3
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5035 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 05:40 · PVG 13:40 · LAX 22:40 · JFK 01:40
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.