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.5.0.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for grequests-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1f75ef1e35cf14ababd33946cef939e8a5870729d463e554c92f06ada4cb7ea |
|
MD5 | 3f95b1799e1108de82eae5fc4710c93c |
|
BLAKE2b-256 | 186fe69300cfa487516b3f72d587cc1c12fa79ef53a0ba53fa25dc69602bea46 |