README.rst
This file
Path
README.rst
110 lines · 3.8 KiB
Last changed by
Merge pull request #4596 from jdufresne/pypiIan Stapleton Cordascobefore adoption2de907a
History of this fileTake it
The walk stopped after 200 commits: lines older than 3857431 point at it.
Update README.rstKenneth Reitzbefore adoptione22e3a5
lines 1–2why, one step back1Requests: HTTP for Humans2=========================v2.17.0Kenneth Reitzbefore adoption3857431
lines 3–4why, one step back34.. image:: https://img.shields.io/pypi/v/requests.svgMerge pull request #4596 from jdufresne/pypiIan Stapleton Cordascobefore adoption2de907a
line 5why, one step back5 :target: https://pypi.org/project/requests/v2.17.0Kenneth Reitzbefore adoption3857431
lines 6–7why, one step back67.. image:: https://img.shields.io/pypi/l/requests.svgMerge pull request #4596 from jdufresne/pypiIan Stapleton Cordascobefore adoption2de907a
line 8why, one step back8 :target: https://pypi.org/project/requests/v2.17.0Kenneth Reitzbefore adoption3857431
lines 9–10why, one step back910.. image:: https://img.shields.io/pypi/pyversions/requests.svgMerge pull request #4596 from jdufresne/pypiIan Stapleton Cordascobefore adoption2de907a
line 11why, one step back11 :target: https://pypi.org/project/requests/v2.17.0Kenneth Reitzbefore adoption3857431
line 12why, one step back12Merge branch 'master' of github.com:kennethreitz/requestsKenneth Reitzbefore adoption916d171
lines 13–14why, one step back13.. image:: https://codecov.io/github/requests/requests/coverage.svg?branch=master14 :target: https://codecov.io/github/requests/requestsv2.17.0Kenneth Reitzbefore adoption3857431
line 15why, one step back15 :alt: codecov.ioMerge branch 'master' of github.com:kennethreitz/requestsKenneth Reitzbefore adoption916d171
lines 16–19why, one step back1617.. image:: https://img.shields.io/github/contributors/requests/requests.svg18 :target: https://github.com/requests/requests/graphs/contributors19v2.17.0Kenneth Reitzbefore adoption3857431
lines 20–24why, one step back20.. image:: https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg21 :target: https://saythanks.io/to/kennethreitz2223Requests is the only *Non-GMO* HTTP library for Python, safe for human24consumption.Update README.rstKenneth Reitzbefore adoptione22e3a5
lines 25–26why, one step back2526.. image:: https://farm5.staticflickr.com/4317/35198386374_1939af3de6_k_d.jpgv2.17.0Kenneth Reitzbefore adoption3857431
lines 27–45why, one step back2728Behold, the power of Requests:2930.. code-block:: python3132 >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))33 >>> r.status_code34 20035 >>> r.headers['content-type']36 'application/json; charset=utf8'37 >>> r.encoding38 'utf-8'39 >>> r.text40 u'{"type":"User"...'41 >>> r.json()42 {u'disk_usage': 368627, u'private_gists': 484, ...}4344See `the similar code, sans Requests <https://gist.github.com/973705>`_.45Merge branch 'master' of github.com:kennethreitz/requestsKenneth Reitzbefore adoption916d171
line 46why, one step back46.. image:: https://raw.githubusercontent.com/requests/requests/master/docs/_static/requests-logo-small.pngv2.17.0Kenneth Reitzbefore adoption3857431
lines 47–79why, one step back47 :target: http://docs.python-requests.org/484950Requests allows you to send *organic, grass-fed* HTTP/1.1 requests, without the51need for manual labor. There's no need to manually add query strings to your52URLs, or to form-encode your POST data. Keep-alive and HTTP connection pooling53are 100% automatic, thanks to `urllib3 <https://github.com/shazow/urllib3>`_.5455Besides, all the cool kids are doing it. Requests is one of the most56downloaded Python packages of all time, pulling in over 11,000,000 downloads57every month. You don't want to be left out!5859Feature Support60---------------6162Requests is ready for today's web.6364- International Domains and URLs65- Keep-Alive & Connection Pooling66- Sessions with Cookie Persistence67- Browser-style SSL Verification68- Basic/Digest Authentication69- Elegant Key/Value Cookies70- Automatic Decompression71- Automatic Content Decoding72- Unicode Response Bodies73- Multipart File Uploads74- HTTP(S) Proxy Support75- Connection Timeouts76- Streaming Downloads77- ``.netrc`` Support78- Chunked Requests79Merge pull request #4341 from hugovk/patch-1Nate Prewittbefore adoptione86df6e
line 80why, one step back80Requests officially supports Python 2.6–2.7 & 3.4–3.6, and runs great on PyPy.v2.17.0Kenneth Reitzbefore adoption3857431
lines 81–84why, one step back8182Installation83------------84Update README.rstKenneth Reitzbefore adoptiondd57439
line 85why, one step back85To install Requests, simply use `pipenv <http://pipenv.org/>`_ (or pip, of course):v2.17.0Kenneth Reitzbefore adoption3857431
lines 86–88why, one step back8687.. code-block:: bash88Update README.rstKenneth Reitzbefore adoptiondd57439
line 89why, one step back89 $ pipenv install requestsv2.17.0Kenneth Reitzbefore adoption3857431
lines 90–91why, one step back90 ✨🍰✨91Merge pull request #4198 from andportnoy/patch-1Cory Benfieldbefore adoption49c44a0
line 92why, one step back92Satisfaction guaranteed.v2.17.0Kenneth Reitzbefore adoption3857431
lines 93–107why, one step back9394Documentation95-------------9697Fantastic documentation is available at http://docs.python-requests.org/, for a limited time only.9899100How to Contribute101-----------------102103#. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug. There is a `Contributor Friendly`_ tag for issues that should be ideal for people who are not very familiar with the codebase yet.104#. Fork `the repository`_ on GitHub to start making your changes to the **master** branch (or branch off of it).105#. Write a test which shows that the bug was fixed or that the feature works as expected.106#. Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to AUTHORS_.107Merge branch 'master' of github.com:requests/requestsKenneth Reitzbefore adoption3c1d36b
line 108why, one step back108.. _`the repository`: https://github.com/requests/requestsMerge branch 'master' of github.com:kennethreitz/requestsKenneth Reitzbefore adoption916d171
lines 109–110why, one step back109.. _AUTHORS: https://github.com/requests/requests/blob/master/AUTHORS.rst110.. _Contributor Friendly: https://github.com/requests/requests/issues?direction=desc&labels=Contributor+Friendly&page=1&sort=updated&state=open