Requests + Eventlet
Project description
ERequests allows you to use Requests with Eventlet to make asyncronous HTTP Requests easily.
ERequests is a port to Eventlet of Kenneth Reitz’s grequests (https://github.com/kennethreitz/grequests)
Usage
Usage is simple:
import erequests 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 = (erequests.get(u) for u in urls)
Send them all at the same time:
>>> erequests.map(rs) [<Response [200]>, <Response [200]>, <Response [200]>, <Response [200]>, <Response [200]>]
Installation
Installation is easy with pip:
$ pip install erequests
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
erequests-0.2.0.tar.gz
(4.8 kB
view details)
File details
Details for the file erequests-0.2.0.tar.gz
.
File metadata
- Download URL: erequests-0.2.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a74d3050a208f1765f04fb32479b0d8ea2bd380a00631cb8649de22da51bbeb8 |
|
MD5 | 13e790cfbf0ac32adb16866f8a17d52b |
|
BLAKE2b-256 | e81eca93b7ba340d5e2dafe23d9133afcf6ad0e9caefb21d6f30e973ec8b0417 |