Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 963 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 963 Bytes

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!