inglesp / async-requests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AsyncRequests

Build Status

This is a proof of concept to demonstrate how Requests can be adapted to work with asyncio, using aiohttp to do most of the work.

The goal is to create a library that has the same API as Requests, except for requiring interaction with asyncio's event loop.

With Requests:

r = requests.get('https://api.github.com/user', auth=('user', 'pass'))

With AsyncRequests:

r = yield from async_requests.get('https://api.github.com/user', auth=('user', 'pass'))

The project currently has alpha status. It passes Requests's test suite, but it could do with some further testing. In addition, it does not yet support connection pooling.

Any/all feedback welcome!

About


Languages

Language:Python 100.0%