Skip to content
Myr

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 file

Take 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 back
1# Requests

Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653

line 2why, one step back
2

grammar fix (#5791)Coco Mishrabefore adoptionc45a4df

line 3why, one step back
3**Requests** is a simple, yet elegant, HTTP library.

Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653

line 4why, one step back
4

updating usage informationNate Prewittbefore adoptiondaa2b29

line 5why, one step back
5```python

Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653

line 6why, one step back
6>>> import requests

General cleanup for 2.27.0Nate Prewittbefore adoption17e6e27

line 7why, one step back
7>>> 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 back
8>>> r.status_code
920010>>> r.headers['content-type']11'application/json; charset=utf8'12>>> r.encoding13'utf-8'14>>> r.text

General cleanup for 2.27.0Nate Prewittbefore adoption17e6e27

line 15why, one step back
15'{"authenticated": true, ...'

Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653

line 16why, one step back
16>>> r.json()

General cleanup for 2.27.0Nate Prewittbefore adoption17e6e27

line 17why, one step back
17{'authenticated': True, ...}

Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653

lines 18–21why, one step back
18```
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!21

General cleanup for 2.27.0Nate Prewittbefore adoption17e6e27

line 22why, one step back
22Requests 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 back
23

fix monthly download badge (#6507)Jonas Schellbefore adoption89f0eb9

line 24why, one step back
24[![Downloads](https://static.pepy.tech/badge/requests/month)](https://pepy.tech/project/requests)

Make README markdown compatibleSeth Michael Larsonbefore adoption533c384

lines 25–26why, one step back
25[![Supported Versions](https://img.shields.io/pypi/pyversions/requests.svg)](https://pypi.org/project/requests)
26[![Contributors](https://img.shields.io/github/contributors/psf/requests.svg)](https://github.com/psf/requests/graphs/contributors)

Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653

line 27why, one step back
27

Make README markdown compatibleSeth Michael Larsonbefore adoption533c384

line 28why, one step back
28## Installing Requests and Supported Versions

Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653

line 29why, one step back
29

Make README markdown compatibleSeth Michael Larsonbefore adoption533c384

line 30why, one step back
30Requests is available on PyPI:

Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653

lines 31–32why, one step back
31
32```console

Make README markdown compatibleSeth Michael Larsonbefore adoption533c384

line 33why, one step back
33$ python -m pip install requests

Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653

lines 34–35why, one step back
34```
35

Merge pull request #6642 from nateprewitt/drop_python_37Nate Prewittbefore adoption7a13c04

line 36why, one step back
36Requests officially supports Python 3.8+.

Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653

line 37why, one step back
37

Make README markdown compatibleSeth Michael Larsonbefore adoption533c384

line 38why, one step back
38## Supported Features & Best–Practices

Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653

line 39why, one step back
39

Make README markdown compatibleSeth Michael Larsonbefore adoption533c384

line 40why, one step back
40Requests 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 back
41

Make README markdown compatibleSeth Michael Larsonbefore adoption533c384

lines 42–54why, one step back
42- Keep-Alive & Connection Pooling
43- 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 Requests

Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653

line 55why, one step back
55

Make README markdown compatibleSeth Michael Larsonbefore adoption533c384

line 56why, one step back
56## 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 back
57

General doc updates (#5923)Nate Prewittbefore adoption9572d6a

line 58why, one step back
58[![Read the Docs](https://raw.githubusercontent.com/psf/requests/main/ext/ss.png)](https://requests.readthedocs.io)

Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653

line 59why, one step back
59

Merge pull request #5755 from pdmccormick/masterIan Stapleton Cordascobefore adoptionbdc00eb

lines 60–75why, one step back
60## Cloning the repository
6162When 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```75

Make README markdown compatibleSeth Michael Larsonbefore adoption533c384

line 76why, one step back
76---

Merge pull request #5326 from nawatts/intersphinx-mapping-configNate Prewittbefore adoptiona990653

line 77why, one step back
77

General doc updates (#5923)Nate Prewittbefore adoption9572d6a

line 78why, one step back
78[![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)