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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: grequests-0.5.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.6.7

File hashes

Hashes for grequests-0.5.0.tar.gz
Algorithm Hash digest
SHA256 8667198589765447db2a8d39927144207d9e0578d9142ed87ecc0af9ce937e23
MD5 0aea3022a5acae934182bb144ffcb994
BLAKE2b-256 4735f91d9c753addbef835bc648319555985fe0ceb7a05ace79b7c85d545665b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: grequests-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.6.7

File hashes

Hashes for grequests-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1f75ef1e35cf14ababd33946cef939e8a5870729d463e554c92f06ada4cb7ea
MD5 3f95b1799e1108de82eae5fc4710c93c
BLAKE2b-256 186fe69300cfa487516b3f72d587cc1c12fa79ef53a0ba53fa25dc69602bea46

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