General cleanup for 2.27.0
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Nate Prewitt · committed by GitHub · parent ab38e2c · Browse files · 3 files·+14 added−10 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+14 added−10 removed
- other:+14 added−10 removed
Provenance
- Commit
17e6e27- Tree
37cc55f- Author
Nate Prewitt <nate.prewitt@gmail.com>- Committer
GitHub <noreply@github.com>- Parent
ab38e2c
3 files changed+14 added−10 removed
modified:docs/community/faq.rst+4 added-4 removed
58 unmodified lines59 60 Python 2 Support?61 -----------------62 63-Yes! We do not have immediate plans to `sunset64-<https://www.python.org/doc/sunset-python-2/>`_ our support for Python65-2.7. We understand that we have a large user base with varying needs.63+Yes! We understand that we have a large user base with varying needs. Through64+**at least** Requests 2.27.x, we will be providing continued support for Python65+2.7. However, this support is likely to end some time in 2022.66 67-That said, it is *highly* recommended users migrate to Python 3.6+ since Python67+It is *highly* recommended users migrate to Python 3.7+ now since Python68 2.7 is no longer receiving bug fixes or security updates as of January 1, 2020.69 70 What are "hostname doesn't match" errors?71 -----------------------------------------21 unmodified linesmodified:README.md+4 added-4 removed
2 unmodified lines34567789101112131415151617171819202122222324252652 unmodified lines2 unmodified lines**Requests** is a simple, yet elegant, HTTP library.
```python>>> import requests>>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))>>> r = requests.get('https://httpbin.org/basic-auth/user/pass', auth=('user', 'pass'))>>> r.status_code200>>> r.headers['content-type']'application/json; charset=utf8'>>> r.encoding'utf-8'>>> r.text'{"type":"User"...''{"authenticated": true, ...'>>> r.json(){'disk_usage': 368627, 'private_gists': 484, ...}{'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 `30M downloads / week`— according to GitHub, Requests is currently [depended upon](https://github.com/psf/requests/network/dependents?package_id=UGFja2FnZS01NzA4OTExNg%3D%3D) by `500,000+` repositories. You may certainly put your trust in this code.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.
[](https://pepy.tech/project/requests)[](https://pypi.org/project/requests)[](https://github.com/psf/requests/graphs/contributors)52 unmodified linesmodified:setup.py+6 added-2 removed
82 unmodified lines83 license=about['__license__'],84 zip_safe=False,85 classifiers=[86 'Development Status :: 5 - Production/Stable',87+ 'Environment :: Web Environment',88 'Intended Audience :: Developers',88- 'Natural Language :: English',89 'License :: OSI Approved :: Apache Software License',90+ 'Natural Language :: English',91+ 'Operating System :: OS Independent',92 'Programming Language :: Python',93 'Programming Language :: Python :: 2',94 'Programming Language :: Python :: 2.7',95 'Programming Language :: Python :: 3',2 unmodified lines98 'Programming Language :: Python :: 3.8',99 'Programming Language :: Python :: 3.9',100 'Programming Language :: Python :: 3.10',101 'Programming Language :: Python :: Implementation :: CPython',100- 'Programming Language :: Python :: Implementation :: PyPy'102+ 'Programming Language :: Python :: Implementation :: PyPy',103+ 'Topic :: Internet :: WWW/HTTP',104+ 'Topic :: Software Development :: Libraries',105 ],106 cmdclass={'test': PyTest},107 tests_require=test_requirements,108 extras_require={10 unmodified lines