README.md
This file
Path
README.md
78 lines · 2.9 KiB · Markdown
Last changed by
Merge pull request #6642 from nateprewitt/drop_python_37Nate Prewittbefore adoption7a13c04
History of this fileTake it
The walk stopped after 200 commits: lines older than 320a10d point at it.
Remove Pipfile/Pipfile.lockNate Prewittbefore adoption320a10d
lines 1–2why, one step back1# Requests2grammar fix (#5791)Coco Mishrabefore adoptionc45a4df
line 3why, one step back3**Requests** is a simple, yet elegant, HTTP library.Remove Pipfile/Pipfile.lockNate Prewittbefore adoption320a10d
lines 4–6why, one step back45```python6>>> import requestsGeneral cleanup for 2.27.0Nate Prewittbefore adoption17e6e27
line 7why, one step back7>>> r = requests.get('https://httpbin.org/basic-auth/user/pass', auth=('user', 'pass'))Remove Pipfile/Pipfile.lockNate Prewittbefore adoption320a10d
lines 8–14why, one step back8>>> r.status_code920010>>> r.headers['content-type']11'application/json; charset=utf8'12>>> r.encoding13'utf-8'14>>> r.textGeneral cleanup for 2.27.0Nate Prewittbefore adoption17e6e27
line 15why, one step back15'{"authenticated": true, ...'Remove Pipfile/Pipfile.lockNate Prewittbefore adoption320a10d
line 16why, one step back16>>> r.json()General cleanup for 2.27.0Nate Prewittbefore adoption17e6e27
line 17why, one step back17{'authenticated': True, ...}Remove Pipfile/Pipfile.lockNate Prewittbefore adoption320a10d
lines 18–21why, one step back18```1920Requests 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!21General cleanup for 2.27.0Nate Prewittbefore adoption17e6e27
line 22why, one step back22Requests 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.Remove Pipfile/Pipfile.lockNate Prewittbefore adoption320a10d
line 23why, one step back23fix monthly download badge (#6507)Jonas Schellbefore adoption89f0eb9
line 24why, one step back24[](https://pepy.tech/project/requests)Remove Pipfile/Pipfile.lockNate Prewittbefore adoption320a10d
lines 25–35why, one step back25[](https://pypi.org/project/requests)26[](https://github.com/psf/requests/graphs/contributors)2728## Installing Requests and Supported Versions2930Requests is available on PyPI:3132```console33$ python -m pip install requests34```35Merge pull request #6642 from nateprewitt/drop_python_37Nate Prewittbefore adoption7a13c04
line 36why, one step back36Requests officially supports Python 3.8+.Remove Pipfile/Pipfile.lockNate Prewittbefore adoption320a10d
lines 37–57why, one step back3738## Supported Features & Best–Practices3940Requests is ready for the demands of building robust and reliable HTTP–speaking applications, for the needs of today.4142- Keep-Alive & Connection Pooling43- International Domains and URLs44- Sessions with Cookie Persistence45- Browser-style TLS/SSL Verification46- Basic & Digest Authentication47- Familiar `dict`–like Cookies48- Automatic Content Decompression and Decoding49- Multi-part File Uploads50- SOCKS Proxy Support51- Connection Timeouts52- Streaming Downloads53- Automatic honoring of `.netrc`54- Chunked HTTP Requests5556## API Reference and User Guide available on [Read the Docs](https://requests.readthedocs.io)57General doc updates (#5923)Nate Prewittbefore adoption9572d6a
line 58why, one step back58[](https://requests.readthedocs.io)Remove Pipfile/Pipfile.lockNate Prewittbefore adoption320a10d
line 59why, one step back59Merge pull request #5755 from pdmccormick/masterIan Stapleton Cordascobefore adoptionbdc00eb
lines 60–75why, one step back60## Cloning the repository6162When cloning the Requests repository, you may need to add the `-c63fetch.fsck.badTimezone=ignore` flag to avoid an error about a bad commit (see64[this issue](https://github.com/psf/requests/issues/2690) for more background):6566```shell67git clone -c fetch.fsck.badTimezone=ignore https://github.com/psf/requests.git68```6970You can also apply this setting to your global Git config:7172```shell73git config --global fetch.fsck.badTimezone ignore74```75Remove Pipfile/Pipfile.lockNate Prewittbefore adoption320a10d
lines 76–77why, one step back76---77General doc updates (#5923)Nate Prewittbefore adoption9572d6a
line 78why, one step back78[](https://kennethreitz.org) [](https://www.python.org/psf)