jpayne@7
|
1 Metadata-Version: 2.1
|
jpayne@7
|
2 Name: requests
|
jpayne@7
|
3 Version: 2.31.0
|
jpayne@7
|
4 Summary: Python HTTP for Humans.
|
jpayne@7
|
5 Home-page: https://requests.readthedocs.io
|
jpayne@7
|
6 Author: Kenneth Reitz
|
jpayne@7
|
7 Author-email: me@kennethreitz.org
|
jpayne@7
|
8 License: Apache 2.0
|
jpayne@7
|
9 Project-URL: Documentation, https://requests.readthedocs.io
|
jpayne@7
|
10 Project-URL: Source, https://github.com/psf/requests
|
jpayne@7
|
11 Platform: UNKNOWN
|
jpayne@7
|
12 Classifier: Development Status :: 5 - Production/Stable
|
jpayne@7
|
13 Classifier: Environment :: Web Environment
|
jpayne@7
|
14 Classifier: Intended Audience :: Developers
|
jpayne@7
|
15 Classifier: License :: OSI Approved :: Apache Software License
|
jpayne@7
|
16 Classifier: Natural Language :: English
|
jpayne@7
|
17 Classifier: Operating System :: OS Independent
|
jpayne@7
|
18 Classifier: Programming Language :: Python
|
jpayne@7
|
19 Classifier: Programming Language :: Python :: 3
|
jpayne@7
|
20 Classifier: Programming Language :: Python :: 3.7
|
jpayne@7
|
21 Classifier: Programming Language :: Python :: 3.8
|
jpayne@7
|
22 Classifier: Programming Language :: Python :: 3.9
|
jpayne@7
|
23 Classifier: Programming Language :: Python :: 3.10
|
jpayne@7
|
24 Classifier: Programming Language :: Python :: 3.11
|
jpayne@7
|
25 Classifier: Programming Language :: Python :: 3 :: Only
|
jpayne@7
|
26 Classifier: Programming Language :: Python :: Implementation :: CPython
|
jpayne@7
|
27 Classifier: Programming Language :: Python :: Implementation :: PyPy
|
jpayne@7
|
28 Classifier: Topic :: Internet :: WWW/HTTP
|
jpayne@7
|
29 Classifier: Topic :: Software Development :: Libraries
|
jpayne@7
|
30 Requires-Python: >=3.7
|
jpayne@7
|
31 Description-Content-Type: text/markdown
|
jpayne@7
|
32 License-File: LICENSE
|
jpayne@7
|
33 Requires-Dist: charset-normalizer (<4,>=2)
|
jpayne@7
|
34 Requires-Dist: idna (<4,>=2.5)
|
jpayne@7
|
35 Requires-Dist: urllib3 (<3,>=1.21.1)
|
jpayne@7
|
36 Requires-Dist: certifi (>=2017.4.17)
|
jpayne@7
|
37 Provides-Extra: security
|
jpayne@7
|
38 Provides-Extra: socks
|
jpayne@7
|
39 Requires-Dist: PySocks (!=1.5.7,>=1.5.6) ; extra == 'socks'
|
jpayne@7
|
40 Provides-Extra: use_chardet_on_py3
|
jpayne@7
|
41 Requires-Dist: chardet (<6,>=3.0.2) ; extra == 'use_chardet_on_py3'
|
jpayne@7
|
42
|
jpayne@7
|
43 # Requests
|
jpayne@7
|
44
|
jpayne@7
|
45 **Requests** is a simple, yet elegant, HTTP library.
|
jpayne@7
|
46
|
jpayne@7
|
47 ```python
|
jpayne@7
|
48 >>> import requests
|
jpayne@7
|
49 >>> r = requests.get('https://httpbin.org/basic-auth/user/pass', auth=('user', 'pass'))
|
jpayne@7
|
50 >>> r.status_code
|
jpayne@7
|
51 200
|
jpayne@7
|
52 >>> r.headers['content-type']
|
jpayne@7
|
53 'application/json; charset=utf8'
|
jpayne@7
|
54 >>> r.encoding
|
jpayne@7
|
55 'utf-8'
|
jpayne@7
|
56 >>> r.text
|
jpayne@7
|
57 '{"authenticated": true, ...'
|
jpayne@7
|
58 >>> r.json()
|
jpayne@7
|
59 {'authenticated': True, ...}
|
jpayne@7
|
60 ```
|
jpayne@7
|
61
|
jpayne@7
|
62 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!
|
jpayne@7
|
63
|
jpayne@7
|
64 Requests 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.
|
jpayne@7
|
65
|
jpayne@7
|
66 [![Downloads](https://pepy.tech/badge/requests/month)](https://pepy.tech/project/requests)
|
jpayne@7
|
67 [![Supported Versions](https://img.shields.io/pypi/pyversions/requests.svg)](https://pypi.org/project/requests)
|
jpayne@7
|
68 [![Contributors](https://img.shields.io/github/contributors/psf/requests.svg)](https://github.com/psf/requests/graphs/contributors)
|
jpayne@7
|
69
|
jpayne@7
|
70 ## Installing Requests and Supported Versions
|
jpayne@7
|
71
|
jpayne@7
|
72 Requests is available on PyPI:
|
jpayne@7
|
73
|
jpayne@7
|
74 ```console
|
jpayne@7
|
75 $ python -m pip install requests
|
jpayne@7
|
76 ```
|
jpayne@7
|
77
|
jpayne@7
|
78 Requests officially supports Python 3.7+.
|
jpayne@7
|
79
|
jpayne@7
|
80 ## Supported Features & Best–Practices
|
jpayne@7
|
81
|
jpayne@7
|
82 Requests is ready for the demands of building robust and reliable HTTP–speaking applications, for the needs of today.
|
jpayne@7
|
83
|
jpayne@7
|
84 - Keep-Alive & Connection Pooling
|
jpayne@7
|
85 - International Domains and URLs
|
jpayne@7
|
86 - Sessions with Cookie Persistence
|
jpayne@7
|
87 - Browser-style TLS/SSL Verification
|
jpayne@7
|
88 - Basic & Digest Authentication
|
jpayne@7
|
89 - Familiar `dict`–like Cookies
|
jpayne@7
|
90 - Automatic Content Decompression and Decoding
|
jpayne@7
|
91 - Multi-part File Uploads
|
jpayne@7
|
92 - SOCKS Proxy Support
|
jpayne@7
|
93 - Connection Timeouts
|
jpayne@7
|
94 - Streaming Downloads
|
jpayne@7
|
95 - Automatic honoring of `.netrc`
|
jpayne@7
|
96 - Chunked HTTP Requests
|
jpayne@7
|
97
|
jpayne@7
|
98 ## API Reference and User Guide available on [Read the Docs](https://requests.readthedocs.io)
|
jpayne@7
|
99
|
jpayne@7
|
100 [![Read the Docs](https://raw.githubusercontent.com/psf/requests/main/ext/ss.png)](https://requests.readthedocs.io)
|
jpayne@7
|
101
|
jpayne@7
|
102 ## Cloning the repository
|
jpayne@7
|
103
|
jpayne@7
|
104 When cloning the Requests repository, you may need to add the `-c
|
jpayne@7
|
105 fetch.fsck.badTimezone=ignore` flag to avoid an error about a bad commit (see
|
jpayne@7
|
106 [this issue](https://github.com/psf/requests/issues/2690) for more background):
|
jpayne@7
|
107
|
jpayne@7
|
108 ```shell
|
jpayne@7
|
109 git clone -c fetch.fsck.badTimezone=ignore https://github.com/psf/requests.git
|
jpayne@7
|
110 ```
|
jpayne@7
|
111
|
jpayne@7
|
112 You can also apply this setting to your global Git config:
|
jpayne@7
|
113
|
jpayne@7
|
114 ```shell
|
jpayne@7
|
115 git config --global fetch.fsck.badTimezone ignore
|
jpayne@7
|
116 ```
|
jpayne@7
|
117
|
jpayne@7
|
118 ---
|
jpayne@7
|
119
|
jpayne@7
|
120 [![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)
|
jpayne@7
|
121
|
jpayne@7
|
122
|