Codebase list python-grequests / 8fa82184-f4d0-4ad8-a1f5-d4cc26d106e6/upstream/0.6.0+git20220126.1.47de40a PKG-INFO
8fa82184-f4d0-4ad8-a1f5-d4cc26d106e6/upstream/0.6.0+git20220126.1.47de40a

Tree @8fa82184-f4d0-4ad8-a1f5-d4cc26d106e6/upstream/0.6.0+git20220126.1.47de40a (Download .tar.gz)

PKG-INFO @8fa82184-f4d0-4ad8-a1f5-d4cc26d106e6/upstream/0.6.0+git20220126.1.47de40araw · history · blame

Metadata-Version: 2.1
Name: grequests
Version: 0.6.0
Summary: Requests + Gevent
Home-page: https://github.com/kennethreitz/grequests
Author: Kenneth Reitz
Author-email: me@kennethreitz.com
License: BSD
Platform: any
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
License-File: LICENSE
License-File: AUTHORS.rst


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