requests
2.9.2
2.9.1
2.9.0
2.8.1
2.8.0
2.7.0
2.6.2
2.6.1
2.6.0
2.5.3
2.5.2
2.5.1
2.5.0
2.4.3
2.4.2
2.4.1
2.4.0
2.34.2
2.34.1
2.34.0.dev1
2.34.0
2.33.1
2.33.0
2.32.5
2.32.4
2.32.3
2.32.2
2.32.1
2.32.0
2.31.0
2.30.0
2.3.0
2.29.0
2.28.2
2.28.1
2.28.0
2.27.1
2.27.0
2.26.0
2.25.1
2.25.0
2.24.0
2.23.0
2.22.0
2.21.0
2.20.1
2.20.0
2.2.1
2.2.0
2.19.1
2.19.0
2.18.4
2.18.3
2.18.2
2.18.1
2.18.0
2.17.3
2.17.2
2.17.1
2.17.0
2.16.5
2.16.4
2.16.3
2.16.2
2.16.1
2.16.0
2.15.1
2.14.2
2.14.1
2.14.0
2.13.0
2.12.5
2.12.4
2.12.3
2.12.2
2.12.1
2.12.0
2.11.1
2.11.0
2.10.0
2.1.0
2.0.1
2.0.0
2.9.2
2.9.1
2.9.0
2.8.1
2.8.0
2.7.0
2.6.2
2.6.1
2.6.0
2.5.3
2.5.2
2.5.1
2.5.0
2.4.3
2.4.2
2.4.1
2.4.0
2.34.2
2.34.1
2.34.0.dev1
2.34.0
2.33.1
2.33.0
2.32.5
2.32.4
2.32.3
2.32.2
2.32.1
2.32.0
2.31.0
2.30.0
2.3.0
2.29.0
2.28.2
2.28.1
2.28.0
2.27.1
2.27.0
2.26.0
2.25.1
2.25.0
2.24.0
2.23.0
2.22.0
2.21.0
2.20.1
2.20.0
2.2.1
2.2.0
2.19.1
2.19.0
2.18.4
2.18.3
2.18.2
2.18.1
2.18.0
2.17.3
2.17.2
2.17.1
2.17.0
2.16.5
2.16.4
2.16.3
2.16.2
2.16.1
2.16.0
2.15.1
2.14.2
2.14.1
2.14.0
2.13.0
2.12.5
2.12.4
2.12.3
2.12.2
2.12.1
2.12.0
2.11.1
2.11.0
2.10.0
2.1.0
2.0.1
2.0.0
1.2.3
1.2.2
1.2.1
1.2.0
1.1.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.9.3
0.9.2
0.9.1
0.9.0
0.8.9
0.8.8
0.8.7
0.8.6
0.8.5
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.1
0.5.0
0.4.1
0.4.0
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.14.2
0.14.1
0.14.0
0.13.9
0.13.8
0.13.7
0.13.6
0.13.5
0.13.4
0.13.3
0.13.2
0.13.1
0.13.0
0.12.1
0.12.0
0.11.2
0.11.1
0.10.8
0.10.7
0.10.6
0.10.4
0.10.3
0.10.2
0.10.1
0.10.0
توضیحات
Python HTTP for Humans.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | requests-2.9.2 |
| نام | requests |
| نسخه کتابخانه | 2.9.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | ['Ian Stapleton Cordasco <graffatcolmingov@gmail.com>, Nate Prewitt <nate.prewitt@gmail.com>'] |
| نویسنده | - |
| ایمیل نویسنده | Kenneth Reitz <me@kennethreitz.org> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/requests/ |
| مجوز | Apache-2.0 |
# Requests
[](https://pypi.org/project/requests/)
[](https://pypi.org/project/requests)
[](https://pepy.tech/project/requests)
[](https://github.com/psf/requests/graphs/contributors)
[](https://requests.readthedocs.io)
**Requests** is a simple, yet elegant, HTTP library.
```python
>>> import requests
>>> r = requests.get('https://httpbin.org/basic-auth/user/pass', auth=('user', 'pass'))
>>> r.status_code
200
>>> r.headers['content-type']
'application/json; charset=utf8'
>>> r.encoding
'utf-8'
>>> r.text
'{"authenticated": true, ...'
>>> r.json()
{'authenticated': True, ...}
```
Requests 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!
Requests 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.
## Installing Requests and Supported Versions
Requests is available on PyPI:
```console
$ python -m pip install requests
```
Requests officially supports Python 3.10+.
## Supported Features & Best–Practices
Requests is ready for the demands of building robust and reliable HTTP–speaking applications, for the needs of today.
- Keep-Alive & Connection Pooling
- International Domains and URLs
- Sessions with Cookie Persistence
- Browser-style TLS/SSL Verification
- Basic & Digest Authentication
- Familiar `dict`–like Cookies
- Automatic Content Decompression and Decoding
- Multi-part File Uploads
- SOCKS Proxy Support
- Connection Timeouts
- Streaming Downloads
- Automatic honoring of `.netrc`
- Chunked HTTP Requests
## Cloning the repository
When cloning the Requests repository, you may need to add the `-c
fetch.fsck.badTimezone=ignore` flag to avoid an error about a bad commit timestamp (see
[this issue](https://github.com/psf/requests/issues/2690) for more background):
```shell
git clone -c fetch.fsck.badTimezone=ignore https://github.com/psf/requests.git
```
You can also apply this setting to your global Git config:
```shell
git config --global fetch.fsck.badTimezone ignore
```
---
[](https://kennethreitz.org) [](https://www.python.org/psf)
نیازمندی
| مقدار | نام |
|---|---|
| - | charset_normalizer<4,>=2 |
| - | idna<4,>=2.5 |
| - | urllib3<3,>=1.26 |
| - | certifi>=2023.5.7 |
| xtr | PySocks!=1.5.7,>=1.5.6; |
| xtr | chardet<8,>=3.0.2; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10 | Python |
نحوه نصب
نصب پکیج whl requests-2.9.2:
pip install requests.whl
نصب پکیج tar.gz requests-2.9.2:
pip install requests.tar.gz