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 a990653 point at it.
Make README markdown compatibleSeth Michael Larsonbefore adoption533c384
line 1why, one step back1# RequestsMerge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653
line 2why, one step back2grammar fix (#5791)Coco Mishrabefore adoptionc45a4df
line 3why, one step back3**Requests** is a simple, yet elegant, HTTP library.Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653
line 4why, one step back4updating usage informationNate Prewittbefore adoptiondaa2b29
line 5why, one step back5```pythonMerge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653
line 6why, one step back6>>> 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'))Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653
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, ...'Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653
line 16why, one step back16>>> r.json()General cleanup for 2.27.0Nate Prewittbefore adoption17e6e27
line 17why, one step back17{'authenticated': True, ...}Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653
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.Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653
line 23why, one step back23fix monthly download badge (#6507)Jonas Schellbefore adoption89f0eb9
line 24why, one step back24[](https://pepy.tech/project/requests)Make README markdown compatibleSeth Michael Larsonbefore adoption533c384
lines 25–26why, one step back25[](https://pypi.org/project/requests)26[](https://github.com/psf/requests/graphs/contributors)Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653
line 27why, one step back27Make README markdown compatibleSeth Michael Larsonbefore adoption533c384
line 28why, one step back28## Installing Requests and Supported VersionsMerge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653
line 29why, one step back29Make README markdown compatibleSeth Michael Larsonbefore adoption533c384
line 30why, one step back30Requests is available on PyPI:Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653
lines 31–32why, one step back3132```consoleMake README markdown compatibleSeth Michael Larsonbefore adoption533c384
line 33why, one step back33$ python -m pip install requestsMerge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653
lines 34–35why, one step back34```35Merge pull request #6642 from nateprewitt/drop_python_37Nate Prewittbefore adoption7a13c04
line 36why, one step back36Requests officially supports Python 3.8+.Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653
line 37why, one step back37Make README markdown compatibleSeth Michael Larsonbefore adoption533c384
line 38why, one step back38## Supported Features & Best–PracticesMerge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653
line 39why, one step back39Make README markdown compatibleSeth Michael Larsonbefore adoption533c384
line 40why, one step back40Requests is ready for the demands of building robust and reliable HTTP–speaking applications, for the needs of today.Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653
line 41why, one step back41Make README markdown compatibleSeth Michael Larsonbefore adoption533c384
lines 42–54why, one step back42- 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 RequestsMerge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653
line 55why, one step back55Make README markdown compatibleSeth Michael Larsonbefore adoption533c384
line 56why, one step back56## API Reference and User Guide available on [Read the Docs](https://requests.readthedocs.io)Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653
line 57why, one step back57General doc updates (#5923)Nate Prewittbefore adoption9572d6a
line 58why, one step back58[](https://requests.readthedocs.io)Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653
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```75Make README markdown compatibleSeth Michael Larsonbefore adoption533c384
line 76why, one step back76---Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653
line 77why, one step back77General doc updates (#5923)Nate Prewittbefore adoption9572d6a
line 78why, one step back78[](https://kennethreitz.org) [](https://www.python.org/psf)