Skip to content

Python requests like API built on top of Twisted's HTTP client.

License

Notifications You must be signed in to change notification settings

jsandovalc/aiorequests

 
 

Repository files navigation

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.

About

Python requests like API built on top of Twisted's HTTP client.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%