METADATA 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. Metadata-Version: 2.4
  2. Name: requests
  3. Version: 2.33.1
  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 :: Only
  24. Classifier: Programming Language :: Python :: Implementation :: CPython
  25. Classifier: Programming Language :: Python :: Implementation :: PyPy
  26. Classifier: Topic :: Internet :: WWW/HTTP
  27. Classifier: Topic :: Software Development :: Libraries
  28. Requires-Python: >=3.10
  29. Description-Content-Type: text/markdown
  30. License-File: LICENSE
  31. License-File: NOTICE
  32. Requires-Dist: charset_normalizer<4,>=2
  33. Requires-Dist: idna<4,>=2.5
  34. Requires-Dist: urllib3<3,>=1.26
  35. Requires-Dist: certifi>=2023.5.7
  36. Provides-Extra: security
  37. Provides-Extra: socks
  38. Requires-Dist: PySocks!=1.5.7,>=1.5.6; extra == "socks"
  39. Provides-Extra: use-chardet-on-py3
  40. Requires-Dist: chardet<8,>=3.0.2; extra == "use-chardet-on-py3"
  41. Dynamic: license-file
  42. # Requests
  43. [![Version](https://img.shields.io/pypi/v/requests.svg?maxAge=86400)](https://pypi.org/project/requests/)
  44. [![Supported Versions](https://img.shields.io/pypi/pyversions/requests.svg)](https://pypi.org/project/requests)
  45. [![Downloads](https://static.pepy.tech/badge/requests/month)](https://pepy.tech/project/requests)
  46. [![Contributors](https://img.shields.io/github/contributors/psf/requests.svg)](https://github.com/psf/requests/graphs/contributors)
  47. **Requests** is a simple, yet elegant, HTTP library.
  48. ```python
  49. >>> import requests
  50. >>> r = requests.get('https://httpbin.org/basic-auth/user/pass', auth=('user', 'pass'))
  51. >>> r.status_code
  52. 200
  53. >>> r.headers['content-type']
  54. 'application/json; charset=utf8'
  55. >>> r.encoding
  56. 'utf-8'
  57. >>> r.text
  58. '{"authenticated": true, ...'
  59. >>> r.json()
  60. {'authenticated': True, ...}
  61. ```
  62. 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!
  63. 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.
  64. ## Installing Requests and Supported Versions
  65. Requests is available on PyPI:
  66. ```console
  67. $ python -m pip install requests
  68. ```
  69. Requests officially supports Python 3.10+.
  70. ## Supported Features & Best–Practices
  71. Requests is ready for the demands of building robust and reliable HTTP–speaking applications, for the needs of today.
  72. - Keep-Alive & Connection Pooling
  73. - International Domains and URLs
  74. - Sessions with Cookie Persistence
  75. - Browser-style TLS/SSL Verification
  76. - Basic & Digest Authentication
  77. - Familiar `dict`–like Cookies
  78. - Automatic Content Decompression and Decoding
  79. - Multi-part File Uploads
  80. - SOCKS Proxy Support
  81. - Connection Timeouts
  82. - Streaming Downloads
  83. - Automatic honoring of `.netrc`
  84. - Chunked HTTP Requests
  85. ## API Reference and User Guide available on [Read the Docs](https://requests.readthedocs.io)
  86. [![Read the Docs](https://raw.githubusercontent.com/psf/requests/main/ext/ss.png)](https://requests.readthedocs.io)
  87. ## Cloning the repository
  88. When cloning the Requests repository, you may need to add the `-c
  89. fetch.fsck.badTimezone=ignore` flag to avoid an error about a bad commit timestamp (see
  90. [this issue](https://github.com/psf/requests/issues/2690) for more background):
  91. ```shell
  92. git clone -c fetch.fsck.badTimezone=ignore https://github.com/psf/requests.git
  93. ```
  94. You can also apply this setting to your global Git config:
  95. ```shell
  96. git config --global fetch.fsck.badTimezone ignore
  97. ```
  98. ---
  99. [![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)