skip to navigation
skip to content

Not Logged In

grequests 0.1.0

Requests + Gevent

Latest Version: 0.2.0

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.1.0.tar.gz (md5) Source 2012-05-11 2KB
  • Downloads (All Versions):
  • 102 downloads in the last day
  • 1276 downloads in the last week
  • 5732 downloads in the last month