PKG-INFO 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. Description: # Requests
  12. **Requests** is a simple, yet elegant, HTTP library.
  13. ```python
  14. >>> import requests
  15. >>> r = requests.get('https://httpbin.org/basic-auth/user/pass', 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. '{"authenticated": true, ...'
  24. >>> r.json()
  25. {'authenticated': True, ...}
  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 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.
  29. [![Downloads](https://pepy.tech/badge/requests/month)](https://pepy.tech/project/requests)
  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.6+.
  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/main/ext/ss.png)](https://requests.readthedocs.io)
  55. ## Cloning the repository
  56. When cloning the Requests repository, you may need to add the `-c
  57. fetch.fsck.badTimezone=ignore` flag to avoid an error about a bad commit (see
  58. [this issue](https://github.com/psf/requests/issues/2690) for more background):
  59. ```shell
  60. git clone -c fetch.fsck.badTimezone=ignore https://github.com/psf/requests.git
  61. ```
  62. You can also apply this setting to your global Git config:
  63. ```shell
  64. git config --global fetch.fsck.badTimezone ignore
  65. ```
  66. ---
  67. [![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)
  68. Platform: UNKNOWN
  69. Classifier: Development Status :: 5 - Production/Stable
  70. Classifier: Environment :: Web Environment
  71. Classifier: Intended Audience :: Developers
  72. Classifier: License :: OSI Approved :: Apache Software License
  73. Classifier: Natural Language :: English
  74. Classifier: Operating System :: OS Independent
  75. Classifier: Programming Language :: Python
  76. Classifier: Programming Language :: Python :: 2
  77. Classifier: Programming Language :: Python :: 2.7
  78. Classifier: Programming Language :: Python :: 3
  79. Classifier: Programming Language :: Python :: 3.6
  80. Classifier: Programming Language :: Python :: 3.7
  81. Classifier: Programming Language :: Python :: 3.8
  82. Classifier: Programming Language :: Python :: 3.9
  83. Classifier: Programming Language :: Python :: 3.10
  84. Classifier: Programming Language :: Python :: Implementation :: CPython
  85. Classifier: Programming Language :: Python :: Implementation :: PyPy
  86. Classifier: Topic :: Internet :: WWW/HTTP
  87. Classifier: Topic :: Software Development :: Libraries
  88. Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*
  89. Description-Content-Type: text/markdown
  90. Provides-Extra: security
  91. Provides-Extra: socks
  92. Provides-Extra: use_chardet_on_py3