Skip to content
Myr

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 file

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

Move badges to top of README (#7293)Nate Prewittbefore adoption8b9bc8f

lines 3–6why, one step back
3[![Version](https://img.shields.io/pypi/v/requests.svg?maxAge=86400)](https://pypi.org/project/requests/)
4[![Supported Versions](https://img.shields.io/pypi/pyversions/requests.svg)](https://pypi.org/project/requests)5[![Downloads](https://static.pepy.tech/badge/requests/month)](https://pepy.tech/project/requests)6[![Contributors](https://img.shields.io/github/contributors/psf/requests.svg)](https://github.com/psf/requests/graphs/contributors)

Update README and remove extraneous images (#7366)Nate Prewittbefore adoption514c162

line 7why, one step back
7[![Documentation](https://readthedocs.org/projects/requests/badge/?version=latest)](https://requests.readthedocs.io)

Move badges to top of README (#7293)Nate Prewittbefore adoption8b9bc8f

line 8why, one step back
8

Merge pull request #6519 from psf/dependabot/github_actions/actions/checkout-4.0.0Ian Stapleton Cordascobefore adoption8812812

lines 9–27why, one step back
9**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!27

Update README and remove extraneous images (#7366)Nate Prewittbefore adoption514c162

line 28why, one step back
28Requests 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 back
29
30## Installing Requests and Supported Versions3132Requests is available on PyPI:3334```console35$ python -m pip install requests36```37

Drop support for Python 3.9 (#7196)Nate Prewittbefore adoption0c2bbe7

line 38why, one step back
38Requests 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 back
39
40## 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 `-c

Clarify error description in cloning instructionsAHMAD FAIZbefore adoption8ff173b

line 61why, one step back
61fetch.fsck.badTimezone=ignore` flag to avoid an error about a bad commit timestamp (see

Merge pull request #6519 from psf/dependabot/github_actions/actions/checkout-4.0.0Ian Stapleton Cordascobefore adoption8812812

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