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.7.0.tar.gz
(6.5 kB
view hashes)
Built Distribution
Close
Hashes for grequests-0.7.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4733edfcece027de25ae8eff86a87f563d7e829fdacbf3ce8b3aeea507694287 |
|
MD5 | dcd7fc19608891223a9a7aa7235a7052 |
|
BLAKE2b-256 | 1c6abb015faedfb65ed728d7ccf15888e82ab46f980430d3c506fb3824388d1d |