Requests + Gevent
Project description
GRequests allows you to use Requests with Gevent to make asyncronous 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.2.0.tar.gz
(2.9 kB
view details)
File details
Details for the file grequests-0.2.0.tar.gz
.
File metadata
- Download URL: grequests-0.2.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | acec39d0fe996303557c9e6fb8ceef5af2714afe314fd0894770bd58bafa4e51 |
|
MD5 | 23186795cf69d127f5e90df665d25387 |
|
BLAKE2b-256 | ad9e9f8653c412e518f0b7a31315a8865ce2b62b8bff9d0aaf6852dfbe924894 |