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 967a05b point at it.

Update renamed GitHub handleMartinbefore adoption967a05b

lines 1–2why, one step back
1# Requests
2

grammar fix (#5791)Coco Mishrabefore adoptionc45a4df

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

Update renamed GitHub handleMartinbefore adoption967a05b

lines 4–6why, one step back
4
5```python6>>> 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'))

Update renamed GitHub handleMartinbefore adoption967a05b

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, ...'

Update renamed GitHub handleMartinbefore adoption967a05b

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

General cleanup for 2.27.0Nate Prewittbefore adoption17e6e27

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

Update renamed GitHub handleMartinbefore adoption967a05b

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.

Update renamed GitHub handleMartinbefore adoption967a05b

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)

Update renamed GitHub handleMartinbefore adoption967a05b

lines 25–35why, 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)2728## Installing Requests and Supported Versions2930Requests is available on PyPI:3132```console33$ python -m pip install requests34```35

Merge pull request #6642 from nateprewitt/drop_python_37Nate Prewittbefore adoption7a13c04

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

Update renamed GitHub handleMartinbefore adoption967a05b

lines 37–57why, one step back
37
38## 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)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)

Update renamed GitHub handleMartinbefore adoption967a05b

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

Update renamed GitHub handleMartinbefore adoption967a05b

lines 76–77why, one step back
76---
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)