General doc updates (#5923)
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 aae7801 · Browse files · 8 files·+20 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
8 files+20 added−10 removed
- other:+20 added−10 removed
Provenance
- Commit
9572d6a- Tree
f4b3bbe- Author
Nate Prewitt <nate.prewitt@gmail.com>- Committer
GitHub <noreply@github.com>- Parent
aae7801
8 files changed+20 added−10 removed
added:docs/_static/requests-sidebar.pngbinary
A binary file, added.
modified:docs/_templates/sidebarintro.html+6 added
1234567891069 unmodified lines<p class="logo"> <a href="{{ pathto(master_doc) }}"> <img class="logo" src="{{ pathto('_static/requests-sidebar.png', 1) }}" alt="Requests logo" /> </a></p>
<p> <iframe src="https://ghbtns.com/github-btn.html?user=psf&repo=requests&type=watch&count=true&size=large" allowtransparency="true" frameborder="0" scrolling="0" width="200px" height="35px"></iframe></p>69 unmodified linesmodified:docs/dev/contributing.rst+1 added-1 removed
76 unmodified lines77 3. Write tests that demonstrate your bug or feature. Ensure that they fail.78 4. Make your change.79 5. Run the entire test suite again, confirming that all tests pass *including80 the ones you just added*.81-6. Send a GitHub Pull Request to the main repository's ``master`` branch.81+6. Send a GitHub Pull Request to the main repository's ``main`` branch.82 GitHub Pull Requests are the expected method of code collaboration on this83 project.84 85 The following sub-sections go into more detail on some of the points above.123 unmodified linesmodified:docs/user/advanced.rst+1 added-1 removed
303 unmodified lines304 immediately. You can override this behaviour and defer downloading the response305 body until you access the :attr:`Response.content <requests.Response.content>`306 attribute with the ``stream`` parameter::307 308- tarball_url = 'https://github.com/psf/requests/tarball/master'308+ tarball_url = 'https://github.com/psf/requests/tarball/main'309 r = requests.get(tarball_url, stream=True)310 311 At this point only the response headers have been downloaded and the connection312 remains open, hence allowing us to make content retrieval conditional::778 unmodified linesmodified:docs/user/install.rst+2 added-2 removed
22 unmodified lines23 You can either clone the public repository::24 25 $ git clone git://github.com/psf/requests.git26 27-Or, download the `tarball <https://github.com/psf/requests/tarball/master>`_::27+Or, download the `tarball <https://github.com/psf/requests/tarball/main>`_::28 29- $ curl -OL https://github.com/psf/requests/tarball/master29+ $ curl -OL https://github.com/psf/requests/tarball/main30 # optionally, zipball is also available (for Windows users).31 32 Once you have a copy of the source, you can embed it in your own Python33 package, or install it into your site-packages easily::3 unmodified linesmodified:docs/index.rst+5 added-1 removed
7 unmodified lines8 9 Release v\ |version|. (:ref:`Installation <install>`)10 11 12-.. image:: https://pepy.tech/badge/requests12+.. image:: https://pepy.tech/badge/requests/month13 :target: https://pepy.tech/project/requests14+ :alt: Requests Downloads Per Month Badge15 16 .. image:: https://img.shields.io/pypi/l/requests.svg17 :target: https://pypi.org/project/requests/18+ :alt: License Badge19 20 .. image:: https://img.shields.io/pypi/wheel/requests.svg21 :target: https://pypi.org/project/requests/22+ :alt: Wheel Support Badge23 24 .. image:: https://img.shields.io/pypi/pyversions/requests.svg25 :target: https://pypi.org/project/requests/26+ :alt: Python Version Support Badge27 28 **Requests** is an elegant and simple HTTP library for Python, built for human beings.29 30 -------------------110 unmodified linesmodified:HISTORY.md+1 added-1 removed
64 unmodified lines65 66 - Requests now supports chardet v4.x.67 68 2.25.0 (2020-11-11)69-------------------69+-------------------70 71 **Improvements**72 73 - Added support for NETRC environment variable. (#5643)1683 unmodified linesmodified:README.md+4 added-4 removed
17 unmodified lines1819202122222324242526272825 unmodified lines5455565758585960616211 unmodified lines74757677787817 unmodified lines```
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 package today, pulling in around `14M 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 package 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.
[](https://pepy.tech/project/requests/month)[](https://pepy.tech/project/requests)[](https://pypi.org/project/requests)[](https://github.com/psf/requests/graphs/contributors)
## Installing Requests and Supported Versions25 unmodified lines- Chunked HTTP Requests
## API Reference and User Guide available on [Read the Docs](https://requests.readthedocs.io)
[](https://requests.readthedocs.io)[](https://requests.readthedocs.io)
## Cloning the repository
When cloning the Requests repository, you may need to add the `-c11 unmodified lines```
---
[](https://kennethreitz.org) [](https://www.python.org/psf)[](https://kennethreitz.org) [](https://www.python.org/psf)