V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · 5064 views
    This topic created in 2945 days ago, the information mentioned may be changed or developed.

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

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