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.3.0.tar.gz
(4.9 kB
view details)
File details
Details for the file erequests-0.3.0.tar.gz
.
File metadata
- Download URL: erequests-0.3.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f96fa07f0aabc6cf1bc234873c4a980b42fb99574304de54af6dac030a387c93 |
|
MD5 | 4d21c084f835533b3763ad636a07a8df |
|
BLAKE2b-256 | cb7723478dee197c80f1d5e6d6d30f1471a02ad73a47c072980a06ecc9ac8c9a |