开源软件名称(OpenSource Name):psf/requests开源软件地址(OpenSource Url):https://github.com/psf/requests开源编程语言(OpenSource Language):Python 99.8%开源软件介绍(OpenSource Introduction):RequestsRequests is a simple, yet elegant, HTTP library. >>> 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 Requests is one of the most downloaded Python packages today, pulling in around Installing Requests and Supported VersionsRequests is available on PyPI: $ python -m pip install requests Requests officially supports Python 3.7+. Supported Features & Best–PracticesRequests is ready for the demands of building robust and reliable HTTP–speaking applications, for the needs of today.
Read the DocsAPI Reference and User Guide available onCloning the repositoryWhen cloning the Requests repository, you may need to add the git clone -c fetch.fsck.badTimezone=ignore https://github.com/psf/requests.git You can also apply this setting to your global Git config: git config --global fetch.fsck.badTimezone ignore |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论