推荐学习书目
› 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 · Apr 4, 2018 · 5559 views
    This topic created in 3154 days ago, the information mentioned may be changed or developed.

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

    5 replies  •  2018-04-06 00:44:35 +08:00
    wzwwzw
    wzwwzw
    Apr 4, 2018
    1
    为什么不用 asyncio + aiohttp 这个好像作者六个月没有更新了。aiohttp 已经到 3.0 了。
    linhanqiu
    linhanqiu
    OP
    Apr 4, 2018
    2
    @wzwwzw 现在是在使用 asyncio + aiohttp 这个方案,grequests 也只是偶然看到的,哈哈,我也是前两周刚刚发现 aiohttp 更新了。
    orangeade
    orangeade
    Apr 4, 2018 via Android
    3
    requests 作者新项目 requests-core 了解一下
    Arnie97
    Arnie97
    Apr 5, 2018 via Android
    4
    直接用 gevent.monkey.patch_all()也行啊
    liyuanji1002
    liyuanji1002
    Apr 6, 2018
    5
    requests 的带异步的新版本现在在开发当中, 等一等应该就有了.
    参考: https://www.kennethreitz.org/requests3
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1092 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 17:44 · PVG 01:44 · LAX 09:44 · JFK 12:44
    ♥ Do have faith in what you're doing.