ERequests 0.3.0

Requests + Eventlet

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
BSD License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Saul Ibarra Corretge
HOMEPAGE:
github.com
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
ERequests is a tool that allows you to use Requests with Eventlet to make asynchronous 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

Last updated on May 13th, 2012

requirements

#Eventlet requests #HTTP requests #Python #Eventlet #requests #HTTP

Add your review!

SUBMIT