GRequests 0.1.0

Requests + Gevent

  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:
Kenneth Reitz
HOMEPAGE:
github.com
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
GRequests is a Python tool that 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] >]

Last updated on May 12th, 2012

requirements

#Gevent requests #HTTP requests #Python #Gevent #requests #HTTP

Add your review!

SUBMIT