Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Yet Another Asyncio Requets

Project description

Yet Another Asyncio Requests

Install and usage are as expected. To install:

$ pip install yaar

And then the usage:

import yaar

response = await yaar.get(url)
print(response.status, response.text)
print(response.json())


# send a json in the request body
response = await yaar.post(url, json={"some": "json"})
print(response.status)

To send headers in your request use:

response = await yaar.get(url, headers={'Authentication': 'bearer} XYZ')

Here you have all usual the methods like put, delete, etc..

In case you need a custom session you can use:

session = aiohttp.ClientSession(loop=loop)
response = await yaar.get(url, session=session)

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 yaar, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size yaar-0.2.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View hashes

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