Skip to content
Myr

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

8 files+20 added−10 removed

added:docs/_static/requests-sidebar.pngbinary

A binary file, added.

modified:docs/_templates/sidebarintro.html+6 added
modified:docs/dev/contributing.rst+1 added-1 removed
76 unmodified lines
773. Write tests that demonstrate your bug or feature. Ensure that they fail.784. Make your change.795. Run the entire test suite again, confirming that all tests pass *including80 the ones you just added*.816. Send a GitHub Pull Request to the main repository's ``master`` branch.816. 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.8485The following sub-sections go into more detail on some of the points above.
123 unmodified lines
modified:docs/user/advanced.rst+1 added-1 removed
303 unmodified lines
304immediately. You can override this behaviour and defer downloading the response305body until you access the :attr:`Response.content <requests.Response.content>`306attribute with the ``stream`` parameter::307308 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)310311At this point only the response headers have been downloaded and the connection312remains open, hence allowing us to make content retrieval conditional::
778 unmodified lines
modified:docs/user/install.rst+2 added-2 removed
22 unmodified lines
23You can either clone the public repository::2425 $ git clone git://github.com/psf/requests.git2627Or, download the `tarball <https://github.com/psf/requests/tarball/master>`_::27Or, download the `tarball <https://github.com/psf/requests/tarball/main>`_::2829 $ 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).3132Once you have a copy of the source, you can embed it in your own Python33package, or install it into your site-packages easily::
3 unmodified lines
modified:docs/index.rst+5 added-1 removed
7 unmodified lines
89Release v\ |version|. (:ref:`Installation <install>`)101112.. 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 Badge1920.. image:: https://img.shields.io/pypi/wheel/requests.svg21 :target: https://pypi.org/project/requests/22 :alt: Wheel Support Badge2324.. image:: https://img.shields.io/pypi/pyversions/requests.svg25 :target: https://pypi.org/project/requests/26 :alt: Python Version Support Badge2728**Requests** is an elegant and simple HTTP library for Python, built for human beings.2930-------------------
110 unmodified lines
modified:HISTORY.md+1 added-1 removed
64 unmodified lines
6566- Requests now supports chardet v4.x.67682.25.0 (2020-11-11)69------------------69-------------------7071**Improvements**7273- Added support for NETRC environment variable. (#5643)
1683 unmodified lines
modified:README.md+4 added-4 removed