METADATA 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Metadata-Version: 2.0
  2. Name: grequests
  3. Version: 0.4.0
  4. Summary: Requests + Gevent
  5. Home-page: https://github.com/kennethreitz/grequests
  6. Author: Kenneth Reitz
  7. Author-email: me@kennethreitz.com
  8. License: BSD
  9. Platform: any
  10. Classifier: Environment :: Web Environment
  11. Classifier: Intended Audience :: Developers
  12. Classifier: License :: OSI Approved :: BSD License
  13. Classifier: Operating System :: OS Independent
  14. Classifier: Programming Language :: Python
  15. Classifier: Programming Language :: Python :: 2.7
  16. Classifier: Programming Language :: Python :: 3
  17. Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
  18. Classifier: Topic :: Software Development :: Libraries :: Python Modules
  19. Requires-Dist: gevent
  20. Requires-Dist: requests
  21. GRequests allows you to use Requests with Gevent to make asynchronous HTTP
  22. Requests easily.
  23. Usage
  24. -----
  25. Usage is simple::
  26. import grequests
  27. urls = [
  28. 'http://www.heroku.com',
  29. 'http://tablib.org',
  30. 'http://httpbin.org',
  31. 'http://python-requests.org',
  32. 'http://kennethreitz.com'
  33. ]
  34. Create a set of unsent Requests::
  35. >>> rs = (grequests.get(u) for u in urls)
  36. Send them all at the same time::
  37. >>> grequests.map(rs)
  38. [<Response [200]>, <Response [200]>, <Response [200]>, <Response [200]>, <Response [200]>]