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.4.0.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for grequests-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb574b08f69b48c54e1029415f5f3316899ee006daa5624bbc5320648cdfdd52 |
|
MD5 | 969bb1b574d4776cebfe0dad1b22ba18 |
|
BLAKE2b-256 | 4bb1c728222e53380685642bab115240e7bf134837c288fe89cce3b3bb591a5d |