Requests + Gevent
Project description
GRequests allows you to use Requests with Gevent to make asynchronous HTTP Requests easily.
Usage
Usage is simple:
import grequests urls = [ 'http://www.heroku.com', 'http://tablib.org', 'http://httpbin.org', 'http://python-requests.org', 'http://kennethreitz.com' ]
Create a set of unsent Requests:
>>> rs = (grequests.get(u) for u in urls)
Send them all at the same time:
>>> grequests.map(rs) [<Response [200]>, <Response [200]>, <Response [200]>, <Response [200]>, <Response [200]>]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
grequests-0.6.0.tar.gz
(4.7 kB
view details)
Built Distribution
File details
Details for the file grequests-0.6.0.tar.gz
.
File metadata
- Download URL: grequests-0.6.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dec890c6668e6755a1ea968565535867956639301268394d24df67b478df666 |
|
MD5 | 8d14251ffce0e4ebf767d8aa0aaf7389 |
|
BLAKE2b-256 | 098014e6838bb38fcef41bca78fb4e1dc879315bb03a412e8ba1891a2c13ac55 |
File details
Details for the file grequests-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: grequests-0.6.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6eff964416021bb1dee4182a56cc2b551bfa42d37820e6aee6f2efa00d43a061 |
|
MD5 | 29b2be3bd0af1d46c3eccd01e6d1e581 |
|
BLAKE2b-256 | ed4c926fe81584bb9139511ec6490a924362dcc49d3d33a7fa20a7dc6515c266 |