README.md
This file
Path
README.md
76 lines · 2.8 KiB · Markdown
Last changed by
Update README and remove extraneous images (#7366)Nate Prewittbefore adoption514c162
History of this fileTake it
The walk stopped after 200 commits: lines older than 8812812 point at it.
Merge pull request #6519 from psf/dependabot/github_actions/actions/checkout-4.0.0Ian Stapleton Cordascobefore adoption8812812
lines 1–2why, one step back1# Requests2Move badges to top of README (#7293)Nate Prewittbefore adoption8b9bc8f
lines 3–6why, one step back3[](https://pypi.org/project/requests/)4[](https://pypi.org/project/requests)5[](https://pepy.tech/project/requests)6[](https://github.com/psf/requests/graphs/contributors)Update README and remove extraneous images (#7366)Nate Prewittbefore adoption514c162
line 7why, one step back7[](https://requests.readthedocs.io)Move badges to top of README (#7293)Nate Prewittbefore adoption8b9bc8f
line 8why, one step back8Merge pull request #6519 from psf/dependabot/github_actions/actions/checkout-4.0.0Ian Stapleton Cordascobefore adoption8812812
lines 9–27why, one step back9**Requests** is a simple, yet elegant, HTTP library.1011```python12>>> import requests13>>> r = requests.get('https://httpbin.org/basic-auth/user/pass', auth=('user', 'pass'))14>>> r.status_code1520016>>> r.headers['content-type']17'application/json; charset=utf8'18>>> r.encoding19'utf-8'20>>> r.text21'{"authenticated": true, ...'22>>> r.json()23{'authenticated': True, ...}24```2526Requests 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!27Update README and remove extraneous images (#7366)Nate Prewittbefore adoption514c162
line 28why, one step back28Requests 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.Merge pull request #6519 from psf/dependabot/github_actions/actions/checkout-4.0.0Ian Stapleton Cordascobefore adoption8812812
lines 29–37why, one step back2930## Installing Requests and Supported Versions3132Requests is available on PyPI:3334```console35$ python -m pip install requests36```37Drop support for Python 3.9 (#7196)Nate Prewittbefore adoption0c2bbe7
line 38why, one step back38Requests officially supports Python 3.10+.Merge pull request #6519 from psf/dependabot/github_actions/actions/checkout-4.0.0Ian Stapleton Cordascobefore adoption8812812
lines 39–60why, one step back3940## Supported Features & Best–Practices4142Requests is ready for the demands of building robust and reliable HTTP–speaking applications, for the needs of today.4344- Keep-Alive & Connection Pooling45- International Domains and URLs46- Sessions with Cookie Persistence47- Browser-style TLS/SSL Verification48- Basic & Digest Authentication49- Familiar `dict`–like Cookies50- Automatic Content Decompression and Decoding51- Multi-part File Uploads52- SOCKS Proxy Support53- Connection Timeouts54- Streaming Downloads55- Automatic honoring of `.netrc`56- Chunked HTTP Requests5758## Cloning the repository5960When cloning the Requests repository, you may need to add the `-cClarify error description in cloning instructionsAHMAD FAIZbefore adoption8ff173b
line 61why, one step back61fetch.fsck.badTimezone=ignore` flag to avoid an error about a bad commit timestamp (seeMerge pull request #6519 from psf/dependabot/github_actions/actions/checkout-4.0.0Ian Stapleton Cordascobefore adoption8812812
lines 62–76why, one step back62[this issue](https://github.com/psf/requests/issues/2690) for more background):6364```shell65git clone -c fetch.fsck.badTimezone=ignore https://github.com/psf/requests.git66```6768You can also apply this setting to your global Git config:6970```shell71git config --global fetch.fsck.badTimezone ignore72```7374---7576[](https://kennethreitz.org) [](https://www.python.org/psf)