2019-03-21 12:55:10 +00:00
2019-03-21 12:51:06 +00:00
2019-03-21 11:26:42 +00:00
2019-03-21 12:51:06 +00:00
2019-03-21 11:26:42 +00:00
2019-03-21 11:58:07 +00:00
2019-03-20 17:24:08 +00:00
2019-03-21 11:26:42 +00:00
2019-03-21 12:51:06 +00:00
2019-03-21 11:26:42 +00:00
2019-03-21 11:26:42 +00:00

requests-async

Brings support for async/await syntax to Python's fabulous requests library.

This is just a first-pass right now.

Next set of things to deal with:

  • https support, and certificate checking.
  • streaming support for uploads and downloads.
  • connection pooling.
  • async cookie persistence, for on-disk cookie stores.
  • make sure authentication works okay (does it use adapters, is the API broken there now?)
  • timeouts

Requirements

  • Python 3.6, 3.7.

Installation:

$ pip install requests-async

Usage:

Just use the standard requests API, but use await for making requests.

import requests_async as requests


response = await requests.get('http://example.org')
print(response.status_code)
print(response.text)
S
Description
No description provided
Readme 60 KiB
Languages
Python 96.2%
Shell 3.8%