GRequests

Software Screenshot:
GRequests
Software Details:
Version: 0.1.0
Upload Date: 14 Apr 15
Developer: Kenneth Reitz
Distribution Type: Freeware
Downloads: 4

Rating: nan/5 (Total Votes: 0)

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] >]

Requirements:

  • Python

Other Software of Developer Kenneth Reitz

inbox
inbox

14 Apr 15

Requests
Requests

12 May 15

ghsync
ghsync

11 May 15

Comments to GRequests

Comments not found
Add Comment
Turn on images!