async-await support for `requests`.
Project description
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 redirections.
- async cookie persistence, for on-disk cookie stores.
- make sure authentication works okay (does it use adapters, is the API broken there now?)
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
requests-async-0.0.1.tar.gz
(5.4 kB
view details)
File details
Details for the file requests-async-0.0.1.tar.gz
.
File metadata
- Download URL: requests-async-0.0.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2fac862c50664bebab912f469ee17619f6b899226627daf22f6b0ca0a59fb42 |
|
MD5 | 3898bc905949398ca5f68170681ea546 |
|
BLAKE2b-256 | 6636662d6f8ed179bd16ee8837dcdaca15ba701371c4842fdaf7a73b3e31319d |