aiorequests

A requests-like API built on top of aiohttp client


License
MIT
Install
pip install aiorequests==0.1.1

Documentation

aiorequests

|build|_

aiorequests is an HTTP library inspired by requests but written on top of asyncio's

aiorequests is based on treq <http://github.com/dred/treq> , the requests API for twisted.

It provides a simple, higher level API for making HTTP requests when using Twisted.

>>> from aiorequests import get

>>> def main():
...     resp = yield from get("http://www.github.com")
...     resp.status
...     reactor.stop()

>>>

>>> from aysncio imoprt get_event_loop
>>> get_event_loop().run_until_complete(main())
200

For more info read the docs.

Contribute

aiorequests is hosted on GitHub.

Feel free to fork and send contributions over.