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 hashes)
Built Distribution
Close
Hashes for grequests-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6eff964416021bb1dee4182a56cc2b551bfa42d37820e6aee6f2efa00d43a061 |
|
MD5 | 29b2be3bd0af1d46c3eccd01e6d1e581 |
|
BLAKE2b-256 | ed4c926fe81584bb9139511ec6490a924362dcc49d3d33a7fa20a7dc6515c266 |