Skip to content
Myr

Some cosmetic updates to the docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kwpolska · committed by Kwpolska · parent 949a29c · Browse files · 6 files+11 added−11 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: Kwpolska <kwpolska@gmail.com>

Diff stats

6 files+11 added−11 removed

  • other:+11 added−11 removed

6 files+11 added−11 removed

modified:docs/dev/philosophy.rst+1 added-1 removed
36 unmodified lines
37~~~~~~~~~~~~~~~~~~~~~3839Distributions have been made for many Linux repositories, including: Ubuntu, Debian, RHEL, and Arch.4041These distributions are sometimes divergent forks, or are otherwise not kept up-to-date with the latest code and bugfixes. PyPI (and its mirrors) and GitHub are the official distribution sources; alternatives are not supported by the requests project.41These distributions are sometimes divergent forks, or are otherwise not kept up-to-date with the latest code and bugfixes. PyPI (and its mirrors) and GitHub are the official distribution sources; alternatives are not supported by the Requests project.
modified:docs/dev/todo.rst+1 added-1 removed
44 unmodified lines
45- PyPy 1.94647Support for Python 3.1 and 3.2 may be dropped at any time.4849Google App Engine will never be officially supported. Pull requests for compatibility will be accepted, as long as they don't complicate the codebase.49Google App Engine will never be officially supported. Pull Requests for compatibility will be accepted, as long as they don't complicate the codebase.505152Are you crazy?53--------------
7 unmodified lines
modified:docs/user/install.rst+4 added-4 removed
8 unmodified lines
910Distribute & Pip11----------------1213Installing requests is simple with `pip <http://www.pip-installer.org/>`_::13Installing Requests is simple with `pip <http://www.pip-installer.org/>`_::1415 $ pip install requests1617or, with `easy_install <http://pypi.python.org/pypi/setuptools>`_::
3 unmodified lines
21But, you really `shouldn't do that <http://www.pip-installer.org/en/latest/other-tools.html#pip-compared-to-easy-install>`_.22232425Cheeseshop Mirror25Cheeseshop (PyPI) Mirror26-----------------2728If the Cheeseshop is down, you can also install Requests from one of the29mirrors. `Crate.io <http://crate.io>`_ is one of them::28If the Cheeseshop (a.k.a. PyPI) is down, you can also install Requests from one29of the mirrors. `Crate.io <http://crate.io>`_ is one of them::3031 $ pip install -i http://simple.crate.io/ requests3233
23 unmodified lines
modified:docs/user/quickstart.rst+3 added-3 removed
115 unmodified lines
116117The ``gzip`` and ``deflate`` transfer-encodings are automatically decoded for you.118119For example, to create an image from binary data returned by a request, you can120use the following code:120use the following code::121122 >>> from PIL import Image123 >>> from StringIO import StringIO124 >>> i = Image.open(StringIO(r.content))
47 unmodified lines
172More complicated POST requests173------------------------------174175Typically, you want to send some form-encoded data — much like an HTML form.176To do this, simply pass a dictionary to the `data` argument. Your176To do this, simply pass a dictionary to the ``data`` argument. Your177dictionary of data will automatically be form-encoded when the request is made::178179 >>> payload = {'key1': 'value1', 'key2': 'value2'}180 >>> r = requests.post("http://httpbin.org/post", data=payload)
196 unmodified lines
377378Timeouts379--------380381You can tell requests to stop waiting for a response after a given number of381You can tell Requests to stop waiting for a response after a given number of382seconds with the ``timeout`` parameter::383384 >>> requests.get('http://github.com', timeout=0.001)385 Traceback (most recent call last):
31 unmodified lines
modified:docs/api.rst+1 added-1 removed
184 unmodified lines
185~~~~~~~~~186187One key difference that has nothing to do with the API is a change in the188license from the ISC_ license to the `Apache 2.0`_ license. The Apache 2.0189license ensures that contributions to requests are also covered by the Apache189license ensures that contributions to Requests are also covered by the Apache1902.0 license.191192.. _ISC: http://opensource.org/licenses/ISC193.. _Apache 2.0: http://opensource.org/licenses/Apache-2.0
1 unmodified line
modified:README.rst+1 added-1 removed
57 unmodified lines
5859Installation60------------6162To install requests, simply:62To install Requests, simply:6364.. code-block:: bash6566 $ pip install requests
26 unmodified lines