README.rst
This file
Path
README.rst
98 lines · 3.3 KiB
Last changed by
Update README.rstKenneth Reitzbefore adoptiondfad00a
History of this fileTake it
The walk stopped after 200 commits: lines older than 72d8293 point at it.
Update README.rstKenneth Reitzbefore adoption72d8293
lines 1–5why, one step back1Requests: HTTP for Humans2=========================34.. image:: https://img.shields.io/pypi/v/requests.svg5 :target: https://pypi.python.org/pypi/requestsUpdate README.rstKenneth Reitzbefore adoptiondfad00a
line 6why, one step back6 Update README.rstKenneth Reitzbefore adoption72d8293
lines 7–13why, one step back7Requests is the only *Non-GMO* HTTP library for Python, safe for human8consumption.910**Warning:** Recreational use of other HTTP libraries may result in dangerous side-effects,11including: security vulnerabilities, verbose code, reinventing the wheel,12constantly reading documentation, depression, headaches, or even death.13behold the power of requestsKenneth Reitzbefore adoption7461371
lines 14–15why, one step back14Behold, the power of Requests:15Update README.rstKenneth Reitzbefore adoption72d8293
lines 16–30why, one step back16.. code-block:: python1718 >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))19 >>> r.status_code20 20021 >>> r.headers['content-type']22 'application/json; charset=utf8'23 >>> r.encoding24 'utf-8'25 >>> r.text26 u'{"type":"User"...'27 >>> r.json()28 {u'disk_usage': 368627, u'private_gists': 484, ...}2930See `the similar code, sans Requests <https://gist.github.com/973705>`_.Update README.rstKenneth Reitzbefore adoptiondfad00a
lines 31–34why, one step back3132.. image:: http://docs.python-requests.org/en/master/_static/requests-sidebar.png33 :target: http://docs.python-requests.org/34Update README.rstKenneth Reitzbefore adoption72d8293
line 35why, one step back35updateKenneth Reitzbefore adoption54d3b59
lines 36–42why, one step back36Requests allows you to send *organic, grass-fed* HTTP/1.1 requests, without the37need for manual labor. There's no need to manually add query strings to your38URLs, or to form-encode your POST data. Keep-alive and HTTP connection pooling39are 100% automatic, powered by `urllib3 <https://github.com/shazow/urllib3>`_,40which is embedded within Requests.4142Besides, all the cool kids are doing it. Requests is one of the mostUpdate README.rstKenneth Reitzbefore adoption00c0a80
line 43why, one step back43downloaded Python packages of all time, pulling in over 7,000,000 downloadsupdateKenneth Reitzbefore adoption54d3b59
line 44why, one step back44every month. You don't want to be left out!Update README.rstKenneth Reitzbefore adoption72d8293
line 45why, one step back45updateKenneth Reitzbefore adoption54d3b59
lines 46–47why, one step back46Feature Support47---------------Update README.rstKenneth Reitzbefore adoption72d8293
line 48why, one step back48updateKenneth Reitzbefore adoption54d3b59
lines 49–50why, one step back49Requests is ready for today's web.50Update README.rstKenneth Reitzbefore adoption72d8293
lines 51–60why, one step back51- International Domains and URLs52- Keep-Alive & Connection Pooling53- Sessions with Cookie Persistence54- Browser-style SSL Verification55- Basic/Digest Authentication56- Elegant Key/Value Cookies57- Automatic Decompression58- Automatic Content Decoding59- Unicode Response Bodies60- Multipart File UploadsupdateKenneth Reitzbefore adoption54d3b59
line 61why, one step back61- HTTP(S) Proxy SupportUpdate README.rstKenneth Reitzbefore adoption72d8293
lines 62–63why, one step back62- Connection Timeouts63- Streaming DownloadsupdateKenneth Reitzbefore adoption54d3b59
line 64why, one step back64- ``.netrc`` SupportUpdate README.rstKenneth Reitzbefore adoption72d8293
lines 65–67why, one step back65- Chunked Requests66- Thread-safety67Merge pull request #3487 from drpoggi/patch-1Cory Benfieldbefore adoptione4b7040
line 68why, one step back68Requests officially supports Python 2.6–2.7 & 3.3–3.5, and runs great on PyPy.updateKenneth Reitzbefore adoption54d3b59
line 69why, one step back69Update README.rstKenneth Reitzbefore adoption72d8293
lines 70–77why, one step back70Installation71------------7273To install Requests, simply:7475.. code-block:: bash7677 $ pip install requestsUpdate README.rstKenneth Reitzbefore adoption169b7ed
line 78why, one step back78 ✨🍰✨Update README.rstKenneth Reitzbefore adoption72d8293
line 79why, one step back79updateKenneth Reitzbefore adoption54d3b59
line 80why, one step back80Satisfaction, guaranteed.Update README.rstKenneth Reitzbefore adoption72d8293
lines 81–84why, one step back8182Documentation83-------------84Update README.rstKenneth Reitzbefore adoption4d97b5b
line 85why, one step back85Fantastic documentation is available at http://docs.python-requests.org/, for a limited time only.Update README.rstKenneth Reitzbefore adoption72d8293
lines 86–87why, one step back8687Update README.rstKenneth Reitzbefore adoption4d97b5b
lines 88–89why, one step back88How to Contribute89-----------------Update README.rstKenneth Reitzbefore adoption72d8293
lines 90–98why, one step back9091#. 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.92#. Fork `the repository`_ on GitHub to start making your changes to the **master** branch (or branch off of it).93#. Write a test which shows that the bug was fixed or that the feature works as expected.94#. Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to AUTHORS_.9596.. _`the repository`: http://github.com/kennethreitz/requests97.. _AUTHORS: https://github.com/kennethreitz/requests/blob/master/AUTHORS.rst98.. _Contributor Friendly: https://github.com/kennethreitz/requests/issues?direction=desc&labels=Contributor+Friendly&page=1&sort=updated&state=open