Skip to main content

A requests-like API built on top of aiohttp client

Project description

aiorequests
===========

|build|_

``aiorequests`` is an HTTP library inspired by
`requests <http://www.python-requests.org>`_ but written on top of
`asyncio <http://www.twistedmatrix.com>`_'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.

.. code-block:: python

>>> 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 <http://treq.readthedocs.org>`_.

Contribute
==========

``aiorequests`` is hosted on `GitHub <http://github.com/jsandovalc/aiorequests>`_.

Feel free to fork and send contributions over.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for aiorequests, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size aiorequests-0.1.1.tar.gz (29.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page