Skip to main content

Requests + Eventlet

Project description

ERequests allows you to use Requests with Eventlet to make asyncronous 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

erequests-0.1.0.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file erequests-0.1.0.tar.gz.

File metadata

  • Download URL: erequests-0.1.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for erequests-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cd866d51310b42a1edc53d5fb2c5c4d398d7bea560df132ebead71b2e6d6a76e
MD5 6b50340ab87669230c74c99ab85d48df
BLAKE2b-256 3f998f1a88d02d6bc6a1a8e3ae262f87a718bbaf03c748eee809f63ca5b2f6ec

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page