jpayne@7: Metadata-Version: 2.1 jpayne@7: Name: requests jpayne@7: Version: 2.31.0 jpayne@7: Summary: Python HTTP for Humans. jpayne@7: Home-page: https://requests.readthedocs.io jpayne@7: Author: Kenneth Reitz jpayne@7: Author-email: me@kennethreitz.org jpayne@7: License: Apache 2.0 jpayne@7: Project-URL: Documentation, https://requests.readthedocs.io jpayne@7: Project-URL: Source, https://github.com/psf/requests jpayne@7: Platform: UNKNOWN jpayne@7: Classifier: Development Status :: 5 - Production/Stable jpayne@7: Classifier: Environment :: Web Environment jpayne@7: Classifier: Intended Audience :: Developers jpayne@7: Classifier: License :: OSI Approved :: Apache Software License jpayne@7: Classifier: Natural Language :: English jpayne@7: Classifier: Operating System :: OS Independent jpayne@7: Classifier: Programming Language :: Python jpayne@7: Classifier: Programming Language :: Python :: 3 jpayne@7: Classifier: Programming Language :: Python :: 3.7 jpayne@7: Classifier: Programming Language :: Python :: 3.8 jpayne@7: Classifier: Programming Language :: Python :: 3.9 jpayne@7: Classifier: Programming Language :: Python :: 3.10 jpayne@7: Classifier: Programming Language :: Python :: 3.11 jpayne@7: Classifier: Programming Language :: Python :: 3 :: Only jpayne@7: Classifier: Programming Language :: Python :: Implementation :: CPython jpayne@7: Classifier: Programming Language :: Python :: Implementation :: PyPy jpayne@7: Classifier: Topic :: Internet :: WWW/HTTP jpayne@7: Classifier: Topic :: Software Development :: Libraries jpayne@7: Requires-Python: >=3.7 jpayne@7: Description-Content-Type: text/markdown jpayne@7: License-File: LICENSE jpayne@7: Requires-Dist: charset-normalizer (<4,>=2) jpayne@7: Requires-Dist: idna (<4,>=2.5) jpayne@7: Requires-Dist: urllib3 (<3,>=1.21.1) jpayne@7: Requires-Dist: certifi (>=2017.4.17) jpayne@7: Provides-Extra: security jpayne@7: Provides-Extra: socks jpayne@7: Requires-Dist: PySocks (!=1.5.7,>=1.5.6) ; extra == 'socks' jpayne@7: Provides-Extra: use_chardet_on_py3 jpayne@7: Requires-Dist: chardet (<6,>=3.0.2) ; extra == 'use_chardet_on_py3' jpayne@7: jpayne@7: # Requests jpayne@7: jpayne@7: **Requests** is a simple, yet elegant, HTTP library. jpayne@7: jpayne@7: ```python jpayne@7: >>> import requests jpayne@7: >>> r = requests.get('https://httpbin.org/basic-auth/user/pass', auth=('user', 'pass')) jpayne@7: >>> r.status_code jpayne@7: 200 jpayne@7: >>> r.headers['content-type'] jpayne@7: 'application/json; charset=utf8' jpayne@7: >>> r.encoding jpayne@7: 'utf-8' jpayne@7: >>> r.text jpayne@7: '{"authenticated": true, ...' jpayne@7: >>> r.json() jpayne@7: {'authenticated': True, ...} jpayne@7: ``` jpayne@7: jpayne@7: 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! jpayne@7: jpayne@7: 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. jpayne@7: jpayne@7: [![Downloads](https://pepy.tech/badge/requests/month)](https://pepy.tech/project/requests) jpayne@7: [![Supported Versions](https://img.shields.io/pypi/pyversions/requests.svg)](https://pypi.org/project/requests) jpayne@7: [![Contributors](https://img.shields.io/github/contributors/psf/requests.svg)](https://github.com/psf/requests/graphs/contributors) jpayne@7: jpayne@7: ## Installing Requests and Supported Versions jpayne@7: jpayne@7: Requests is available on PyPI: jpayne@7: jpayne@7: ```console jpayne@7: $ python -m pip install requests jpayne@7: ``` jpayne@7: jpayne@7: Requests officially supports Python 3.7+. jpayne@7: jpayne@7: ## Supported Features & Best–Practices jpayne@7: jpayne@7: Requests is ready for the demands of building robust and reliable HTTP–speaking applications, for the needs of today. jpayne@7: jpayne@7: - Keep-Alive & Connection Pooling jpayne@7: - International Domains and URLs jpayne@7: - Sessions with Cookie Persistence jpayne@7: - Browser-style TLS/SSL Verification jpayne@7: - Basic & Digest Authentication jpayne@7: - Familiar `dict`–like Cookies jpayne@7: - Automatic Content Decompression and Decoding jpayne@7: - Multi-part File Uploads jpayne@7: - SOCKS Proxy Support jpayne@7: - Connection Timeouts jpayne@7: - Streaming Downloads jpayne@7: - Automatic honoring of `.netrc` jpayne@7: - Chunked HTTP Requests jpayne@7: jpayne@7: ## API Reference and User Guide available on [Read the Docs](https://requests.readthedocs.io) jpayne@7: jpayne@7: [![Read the Docs](https://raw.githubusercontent.com/psf/requests/main/ext/ss.png)](https://requests.readthedocs.io) jpayne@7: jpayne@7: ## Cloning the repository jpayne@7: jpayne@7: When cloning the Requests repository, you may need to add the `-c jpayne@7: fetch.fsck.badTimezone=ignore` flag to avoid an error about a bad commit (see jpayne@7: [this issue](https://github.com/psf/requests/issues/2690) for more background): jpayne@7: jpayne@7: ```shell jpayne@7: git clone -c fetch.fsck.badTimezone=ignore https://github.com/psf/requests.git jpayne@7: ``` jpayne@7: jpayne@7: You can also apply this setting to your global Git config: jpayne@7: jpayne@7: ```shell jpayne@7: git config --global fetch.fsck.badTimezone ignore jpayne@7: ``` jpayne@7: jpayne@7: --- jpayne@7: jpayne@7: [![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) jpayne@7: jpayne@7: