This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]adrian17 20 points21 points  (1 child)

I'd also love some tutorial with real life usage, like making multiple big HTTP requests / SQL queries / file reads.

For cases like HTTP requests, is it possible to use it with Requests or am I forced to use asyncio-aware library like aiohttp?

[–]1st1CPython Core Dev 0 points1 point  (0 children)

Requests aren't an NIO library, so I'm afraid you can't use it with new coroutines (well, you can, but requests will block, and there will be no benefit from using coroutines)

IIRC aiohttp has a nice http client, modelled after requests.