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.

Filename, size & hash SHA256 hash help File type Python version Upload date
aiorequests-0.1.1.tar.gz (29.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page