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.1.0.tar.gz
(2.4 kB
view details)
File details
Details for the file grequests-0.1.0.tar.gz
.
File metadata
- Download URL: grequests-0.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73fa312f3d4b62f038a44c0a56cd3b27973b57208befbaaf96db3683fa02e2b9 |
|
MD5 | 493e63ef6c28d59bc4620cd872f136a0 |
|
BLAKE2b-256 | 6eea1a2f1de067fdab1a0846153ef4a5a1de2d9ecf1e40cc8128ef0e394f031d |