You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

134 line
4.8 KiB

  1. Metadata-Version: 2.4
  2. Name: requests
  3. Version: 2.32.4
  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. Classifier: Development Status :: 5 - Production/Stable
  12. Classifier: Environment :: Web Environment
  13. Classifier: Intended Audience :: Developers
  14. Classifier: License :: OSI Approved :: Apache Software License
  15. Classifier: Natural Language :: English
  16. Classifier: Operating System :: OS Independent
  17. Classifier: Programming Language :: Python
  18. Classifier: Programming Language :: Python :: 3
  19. Classifier: Programming Language :: Python :: 3.8
  20. Classifier: Programming Language :: Python :: 3.9
  21. Classifier: Programming Language :: Python :: 3.10
  22. Classifier: Programming Language :: Python :: 3.11
  23. Classifier: Programming Language :: Python :: 3.12
  24. Classifier: Programming Language :: Python :: 3.13
  25. Classifier: Programming Language :: Python :: 3 :: Only
  26. Classifier: Programming Language :: Python :: Implementation :: CPython
  27. Classifier: Programming Language :: Python :: Implementation :: PyPy
  28. Classifier: Topic :: Internet :: WWW/HTTP
  29. Classifier: Topic :: Software Development :: Libraries
  30. Requires-Python: >=3.8
  31. Description-Content-Type: text/markdown
  32. License-File: LICENSE
  33. Requires-Dist: charset_normalizer<4,>=2
  34. Requires-Dist: idna<4,>=2.5
  35. Requires-Dist: urllib3<3,>=1.21.1
  36. Requires-Dist: certifi>=2017.4.17
  37. Provides-Extra: security
  38. Provides-Extra: socks
  39. Requires-Dist: PySocks!=1.5.7,>=1.5.6; extra == "socks"
  40. Provides-Extra: use-chardet-on-py3
  41. Requires-Dist: chardet<6,>=3.0.2; extra == "use-chardet-on-py3"
  42. Dynamic: author
  43. Dynamic: author-email
  44. Dynamic: classifier
  45. Dynamic: description
  46. Dynamic: description-content-type
  47. Dynamic: home-page
  48. Dynamic: license
  49. Dynamic: license-file
  50. Dynamic: project-url
  51. Dynamic: provides-extra
  52. Dynamic: requires-dist
  53. Dynamic: requires-python
  54. Dynamic: summary
  55. # Requests
  56. **Requests** is a simple, yet elegant, HTTP library.
  57. ```python
  58. >>> import requests
  59. >>> r = requests.get('https://httpbin.org/basic-auth/user/pass', auth=('user', 'pass'))
  60. >>> r.status_code
  61. 200
  62. >>> r.headers['content-type']
  63. 'application/json; charset=utf8'
  64. >>> r.encoding
  65. 'utf-8'
  66. >>> r.text
  67. '{"authenticated": true, ...'
  68. >>> r.json()
  69. {'authenticated': True, ...}
  70. ```
  71. 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!
  72. Requests is one of the most downloaded Python packages today, pulling in around `30M downloads / week`— according to GitHub, Requests is currently [depended upon](https://github.com/psf/requests/network/dependents?package_id=UGFja2FnZS01NzA4OTExNg%3D%3D) by `1,000,000+` repositories. You may certainly put your trust in this code.
  73. [![Downloads](https://static.pepy.tech/badge/requests/month)](https://pepy.tech/project/requests)
  74. [![Supported Versions](https://img.shields.io/pypi/pyversions/requests.svg)](https://pypi.org/project/requests)
  75. [![Contributors](https://img.shields.io/github/contributors/psf/requests.svg)](https://github.com/psf/requests/graphs/contributors)
  76. ## Installing Requests and Supported Versions
  77. Requests is available on PyPI:
  78. ```console
  79. $ python -m pip install requests
  80. ```
  81. Requests officially supports Python 3.8+.
  82. ## Supported Features & Best–Practices
  83. Requests is ready for the demands of building robust and reliable HTTP–speaking applications, for the needs of today.
  84. - Keep-Alive & Connection Pooling
  85. - International Domains and URLs
  86. - Sessions with Cookie Persistence
  87. - Browser-style TLS/SSL Verification
  88. - Basic & Digest Authentication
  89. - Familiar `dict`–like Cookies
  90. - Automatic Content Decompression and Decoding
  91. - Multi-part File Uploads
  92. - SOCKS Proxy Support
  93. - Connection Timeouts
  94. - Streaming Downloads
  95. - Automatic honoring of `.netrc`
  96. - Chunked HTTP Requests
  97. ## API Reference and User Guide available on [Read the Docs](https://requests.readthedocs.io)
  98. [![Read the Docs](https://raw.githubusercontent.com/psf/requests/main/ext/ss.png)](https://requests.readthedocs.io)
  99. ## Cloning the repository
  100. When cloning the Requests repository, you may need to add the `-c
  101. fetch.fsck.badTimezone=ignore` flag to avoid an error about a bad commit (see
  102. [this issue](https://github.com/psf/requests/issues/2690) for more background):
  103. ```shell
  104. git clone -c fetch.fsck.badTimezone=ignore https://github.com/psf/requests.git
  105. ```
  106. You can also apply this setting to your global Git config:
  107. ```shell
  108. git config --global fetch.fsck.badTimezone ignore
  109. ```
  110. ---
  111. [![Kenneth Reitz](https://raw.githubusercontent.com/psf/requests/main/ext/kr.png)](https://kennethreitz.org) [![Python Software Foundation](https://raw.githubusercontent.com/psf/requests/main/ext/psf.png)](https://www.python.org/psf)