Skip to main content

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

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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 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.

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

1 file

0.2.0

1 file

0.1.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page