grequests-0.7.0
توضیحات
Requests + Gevent
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | grequests-0.7.0 |
| نام | grequests |
| نسخه کتابخانه | 0.7.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Kenneth Reitz |
| ایمیل نویسنده | me@kennethreitz.com |
| آدرس صفحه اصلی | https://github.com/spyoungtech/grequests |
| آدرس اینترنتی | https://pypi.org/project/grequests/ |
| مجوز | BSD |
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]>]
نیازمندی
| مقدار | نام |
|---|---|
| - | gevent |
| - | requests |
نحوه نصب
نصب پکیج whl grequests-0.7.0:
pip install grequests-0.7.0.whl
نصب پکیج tar.gz grequests-0.7.0:
pip install grequests-0.7.0.tar.gz