METADATA 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. Metadata-Version: 2.1
  2. Name: requests
  3. Version: 2.27.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. Platform: UNKNOWN
  12. Classifier: Development Status :: 5 - Production/Stable
  13. Classifier: Environment :: Web Environment
  14. Classifier: Intended Audience :: Developers
  15. Classifier: License :: OSI Approved :: Apache Software License
  16. Classifier: Natural Language :: English
  17. Classifier: Operating System :: OS Independent
  18. Classifier: Programming Language :: Python
  19. Classifier: Programming Language :: Python :: 2
  20. Classifier: Programming Language :: Python :: 2.7
  21. Classifier: Programming Language :: Python :: 3
  22. Classifier: Programming Language :: Python :: 3.6
  23. Classifier: Programming Language :: Python :: 3.7
  24. Classifier: Programming Language :: Python :: 3.8
  25. Classifier: Programming Language :: Python :: 3.9
  26. Classifier: Programming Language :: Python :: 3.10
  27. Classifier: Programming Language :: Python :: Implementation :: CPython
  28. Classifier: Programming Language :: Python :: Implementation :: PyPy
  29. Classifier: Topic :: Internet :: WWW/HTTP
  30. Classifier: Topic :: Software Development :: Libraries
  31. Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*
  32. Description-Content-Type: text/markdown
  33. Requires-Dist: urllib3 (<1.27,>=1.21.1)
  34. Requires-Dist: certifi (>=2017.4.17)
  35. Requires-Dist: chardet (<5,>=3.0.2) ; python_version < "3"
  36. Requires-Dist: idna (<3,>=2.5) ; python_version < "3"
  37. Requires-Dist: charset-normalizer (~=2.0.0) ; python_version >= "3"
  38. Requires-Dist: idna (<4,>=2.5) ; python_version >= "3"
  39. Provides-Extra: security
  40. Provides-Extra: socks
  41. Requires-Dist: PySocks (!=1.5.7,>=1.5.6) ; extra == 'socks'
  42. Requires-Dist: win-inet-pton ; (sys_platform == "win32" and python_version == "2.7") and extra == 'socks'
  43. Provides-Extra: use_chardet_on_py3
  44. Requires-Dist: chardet (<5,>=3.0.2) ; extra == 'use_chardet_on_py3'
  45. # Requests
  46. **Requests** is a simple, yet elegant, HTTP library.
  47. ```python
  48. >>> import requests
  49. >>> r = requests.get('https://httpbin.org/basic-auth/user/pass', auth=('user', 'pass'))
  50. >>> r.status_code
  51. 200
  52. >>> r.headers['content-type']
  53. 'application/json; charset=utf8'
  54. >>> r.encoding
  55. 'utf-8'
  56. >>> r.text
  57. '{"authenticated": true, ...'
  58. >>> r.json()
  59. {'authenticated': True, ...}
  60. ```
  61. 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!
  62. 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.
  63. [![Downloads](https://pepy.tech/badge/requests/month)](https://pepy.tech/project/requests)
  64. [![Supported Versions](https://img.shields.io/pypi/pyversions/requests.svg)](https://pypi.org/project/requests)
  65. [![Contributors](https://img.shields.io/github/contributors/psf/requests.svg)](https://github.com/psf/requests/graphs/contributors)
  66. ## Installing Requests and Supported Versions
  67. Requests is available on PyPI:
  68. ```console
  69. $ python -m pip install requests
  70. ```
  71. Requests officially supports Python 2.7 & 3.6+.
  72. ## Supported Features & Best–Practices
  73. Requests is ready for the demands of building robust and reliable HTTP–speaking applications, for the needs of today.
  74. - Keep-Alive & Connection Pooling
  75. - International Domains and URLs
  76. - Sessions with Cookie Persistence
  77. - Browser-style TLS/SSL Verification
  78. - Basic & Digest Authentication
  79. - Familiar `dict`–like Cookies
  80. - Automatic Content Decompression and Decoding
  81. - Multi-part File Uploads
  82. - SOCKS Proxy Support
  83. - Connection Timeouts
  84. - Streaming Downloads
  85. - Automatic honoring of `.netrc`
  86. - Chunked HTTP Requests
  87. ## API Reference and User Guide available on [Read the Docs](https://requests.readthedocs.io)
  88. [![Read the Docs](https://raw.githubusercontent.com/psf/requests/main/ext/ss.png)](https://requests.readthedocs.io)
  89. ## Cloning the repository
  90. When cloning the Requests repository, you may need to add the `-c
  91. fetch.fsck.badTimezone=ignore` flag to avoid an error about a bad commit (see
  92. [this issue](https://github.com/psf/requests/issues/2690) for more background):
  93. ```shell
  94. git clone -c fetch.fsck.badTimezone=ignore https://github.com/psf/requests.git
  95. ```
  96. You can also apply this setting to your global Git config:
  97. ```shell
  98. git config --global fetch.fsck.badTimezone ignore
  99. ```
  100. ---
  101. [![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)