PKG-INFO 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. Metadata-Version: 2.1
  2. Name: requests
  3. Version: 2.25.1
  4. Summary: Python HTTP for Humans.
  5. Home-page: https://requests.readthedocs.io
  6. Author: Kenneth Reitz
  7. Author-email: me@kennethreitz.org
  8. License: Apache 2.0
  9. Project-URL: Documentation, https://requests.readthedocs.io
  10. Project-URL: Source, https://github.com/psf/requests
  11. Description: # Requests
  12. **Requests** is a simple, yet elegant HTTP library.
  13. ```python
  14. >>> import requests
  15. >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))
  16. >>> r.status_code
  17. 200
  18. >>> r.headers['content-type']
  19. 'application/json; charset=utf8'
  20. >>> r.encoding
  21. 'utf-8'
  22. >>> r.text
  23. '{"type":"User"...'
  24. >>> r.json()
  25. {'disk_usage': 368627, 'private_gists': 484, ...}
  26. ```
  27. Requests allows you to send HTTP/1.1 requests extremely easily. There’s no need to manually add query strings to your URLs, or to form-encode your `PUT` & `POST` data — but nowadays, just use the `json` method!
  28. Requests is one of the most downloaded Python package today, pulling in around `14M downloads / week`— according to GitHub, Requests is currently [depended upon](https://github.com/psf/requests/network/dependents?package_id=UGFja2FnZS01NzA4OTExNg%3D%3D) by `500,000+` repositories. You may certainly put your trust in this code.
  29. [![Downloads](https://pepy.tech/badge/requests/month)](https://pepy.tech/project/requests/month)
  30. [![Supported Versions](https://img.shields.io/pypi/pyversions/requests.svg)](https://pypi.org/project/requests)
  31. [![Contributors](https://img.shields.io/github/contributors/psf/requests.svg)](https://github.com/psf/requests/graphs/contributors)
  32. ## Installing Requests and Supported Versions
  33. Requests is available on PyPI:
  34. ```console
  35. $ python -m pip install requests
  36. ```
  37. Requests officially supports Python 2.7 & 3.5+.
  38. ## Supported Features & Best–Practices
  39. Requests is ready for the demands of building robust and reliable HTTP–speaking applications, for the needs of today.
  40. - Keep-Alive & Connection Pooling
  41. - International Domains and URLs
  42. - Sessions with Cookie Persistence
  43. - Browser-style TLS/SSL Verification
  44. - Basic & Digest Authentication
  45. - Familiar `dict`–like Cookies
  46. - Automatic Content Decompression and Decoding
  47. - Multi-part File Uploads
  48. - SOCKS Proxy Support
  49. - Connection Timeouts
  50. - Streaming Downloads
  51. - Automatic honoring of `.netrc`
  52. - Chunked HTTP Requests
  53. ## API Reference and User Guide available on [Read the Docs](https://requests.readthedocs.io)
  54. [![Read the Docs](https://raw.githubusercontent.com/psf/requests/master/ext/ss.png)](https://requests.readthedocs.io)
  55. ---
  56. [![Kenneth Reitz](https://raw.githubusercontent.com/psf/requests/master/ext/kr.png)](https://kennethreitz.org) [![Python Software Foundation](https://raw.githubusercontent.com/psf/requests/master/ext/psf.png)](https://www.python.org/psf)
  57. Platform: UNKNOWN
  58. Classifier: Development Status :: 5 - Production/Stable
  59. Classifier: Intended Audience :: Developers
  60. Classifier: Natural Language :: English
  61. Classifier: License :: OSI Approved :: Apache Software License
  62. Classifier: Programming Language :: Python
  63. Classifier: Programming Language :: Python :: 2
  64. Classifier: Programming Language :: Python :: 2.7
  65. Classifier: Programming Language :: Python :: 3
  66. Classifier: Programming Language :: Python :: 3.5
  67. Classifier: Programming Language :: Python :: 3.6
  68. Classifier: Programming Language :: Python :: 3.7
  69. Classifier: Programming Language :: Python :: 3.8
  70. Classifier: Programming Language :: Python :: 3.9
  71. Classifier: Programming Language :: Python :: Implementation :: CPython
  72. Classifier: Programming Language :: Python :: Implementation :: PyPy
  73. Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
  74. Description-Content-Type: text/markdown
  75. Provides-Extra: security
  76. Provides-Extra: socks