3 ms·
I could never understand why people insist on using requests rather than the stdlib (which works just fine). When async became a thing, I remember hitting some
by LtWorf 4y ago
I could never understand why people insist on using requests rather than the stdlib (which works just fine).
When async became a thing, I remember hitting some bug in aiohttp so I wrote myself a tiny (just doing the bit I needed) HTTP async client, which I figured was easier than wrestling aiohttp into compliance.
These days aiohttp is quite nice for async, and for sync I just use the stdlib.
My async client, if it can be of interest https://github.com/ltworf/localslackirc/blob/master/slackclient/http.py https://github.com/ltworf/localslackirc/blob/master/slackcli...
- wink 4y agoaiohttp is too new for the time I'm talking about. And no, I would not say that the stdlib was fine and requests was absolutley worth using in Python 2 :)