Async/Concurrent HTTP Requests

Zachary Ware zachary.ware+pylist at gmail.com
Thu Feb 12 12:59:41 EST 2015


On Thu, Feb 12, 2015 at 10:37 AM, Ari King <ari.brandeis.king at gmail.com> wrote:
> Hi,
>
> I'd like to query two (or more) RESTful APIs concurrently. What is the pythonic way of doing so? Is it better to use built in functions or are third-party packages? Thanks.

Have a look at asyncio (new in Python 3.4, available for 3.3 as the
'tulip' project) and possibly the aiohttp project, available on PyPI.
I'm using both for a current project, and they work very well.

-- 
Zach



More information about the Python-list mailing list