skip to navigation
skip to content

Not Logged In

grequests 0.2.0

Requests + Gevent

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]>]
 
File Type Py Version Uploaded on Size
grequests-0.2.0.tar.gz (md5) Source 2013-03-04 2KB
  • Downloads (All Versions):
  • 217 downloads in the last day
  • 1298 downloads in the last week
  • 5897 downloads in the last month