METADATA 4.7 KB

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