Skip to main content

Requests + Gevent

Project description

GRequests allows you to use Requests with Gevent to make asynchronous 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]>]

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

grequests-0.7.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

grequests-0.7.0-py2.py3-none-any.whl (5.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file grequests-0.7.0.tar.gz.

File metadata

  • Download URL: grequests-0.7.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for grequests-0.7.0.tar.gz
Algorithm Hash digest
SHA256 5c33f14268df5b8fa1107d8537815be6febbad6ec560524d6a404b7778cf6ba6
MD5 98b64472b87185a64d32f6f8abf75c3a
BLAKE2b-256 8a6a95616ce27c8b7c58f7dd0e5eba61ac873ecaae082d73e515904803fe73e7

See more details on using hashes here.

File details

Details for the file grequests-0.7.0-py2.py3-none-any.whl.

File metadata

  • Download URL: grequests-0.7.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for grequests-0.7.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4733edfcece027de25ae8eff86a87f563d7e829fdacbf3ce8b3aeea507694287
MD5 dcd7fc19608891223a9a7aa7235a7052
BLAKE2b-256 1c6abb015faedfb65ed728d7ccf15888e82ab46f980430d3c506fb3824388d1d

See more details on using hashes here.

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