Skip to main content

ERequests: Asyncronous Requests with Eventlet

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) though it doesn’t provide the same API these days.

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.async.get(u) for u in urls)

Send them all at the same time:

>>> list(erequests.map(rs))
[<Response [200]>, <Response [200]>, <Response [200]>, <Response [200]>, <Response [200]>]

NOTE: When sending multiple requests at the same time with map/imap, if any of them results in an error, the exception object is returned.

Installation

Installation is easy with pip:

$ pip install erequests

Metadata

Release files for erequests 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for erequests 0.4.1
File Size Uploaded Provenance Actions
erequests-0.4.1.tar.gz 4.8 kB Without provenance Details for erequests-0.4.1.tar.gz

Release files / erequests-0.4.1.tar.gz

Download URL erequests-0.4.1.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fd7a159dc0e7dca6e3dc67cd3029e4405249a025dd63dd1870cced056ff15d83
BLAKE2b-256 checksum
How to use checksums
ba983f69c6eec6a96fe6ff29f22497350cb59d58f7cc1f015f6dab86a2451674
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for erequests 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page