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.4.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

grequests-0.4.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: grequests-0.4.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7

File hashes

Hashes for grequests-0.4.0.tar.gz
Algorithm Hash digest
SHA256 8aeccc15e60ec65c7e67ee32e9c596ab2196979815497f85cf863465a1626490
MD5 80ad182705f54fb20ddf4f0907156ec0
BLAKE2b-256 7e8039540c164bc4a6fd5bdafe4ab448752605bce4812b77702f81fd54fbbcc3

See more details on using hashes here.

File details

Details for the file grequests-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: grequests-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7

File hashes

Hashes for grequests-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb574b08f69b48c54e1029415f5f3316899ee006daa5624bbc5320648cdfdd52
MD5 969bb1b574d4776cebfe0dad1b22ba18
BLAKE2b-256 4bb1c728222e53380685642bab115240e7bf134837c288fe89cce3b3bb591a5d

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