README.rst
This file
Path
README.rst
97 lines · 3.2 KiB
Last changed by
Update README.rstKenneth Reitzbefore adoption169b7ed
History of this fileTake it
The walk stopped after 200 commits: lines older than 98a59e4 point at it.
Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4
lines 1–9why, one step back1Requests: HTTP for Humans2=========================34.. image:: https://img.shields.io/pypi/v/requests.svg5 :target: https://pypi.python.org/pypi/requests67.. image:: https://img.shields.io/pypi/dm/requests.svg8 :target: https://pypi.python.org/pypi/requests9Update README.rstKenneth Reitzbefore adoptionf997c05
line 10why, one step back10Requests is the only *Non-GMO* HTTP library for Python, safe for humanUpdate README.rstKenneth Reitzbefore adoptionab22b3e
line 11why, one step back11consumption.Merge branch 'master' of github.com:kennethreitz/requestsKenneth Reitzbefore adoption2d0d291
line 12why, one step back12Update README.rstKenneth Reitzbefore adoption72d8293
line 13why, one step back13**Warning:** Recreational use of other HTTP libraries may result in dangerous side-effects,revised readmeKenneth Reitzbefore adoption20b4bb7
lines 14–15why, one step back14including: security vulnerabilities, verbose code, reinventing the wheel,15constantly reading documentation, depression, headaches, or even death.Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4
line 16why, one step back16behold the power of requestsKenneth Reitzbefore adoption7461371
lines 17–18why, one step back17Behold, the power of Requests:18Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4
lines 19–20why, one step back19.. code-block:: python20readme cleanupKenneth Reitzbefore adoption4095b26
line 21why, one step back21 >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4
line 22why, one step back22 >>> r.status_coderevised readmeKenneth Reitzbefore adoption20b4bb7
line 23why, one step back23 200Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4
line 24why, one step back24 >>> r.headers['content-type']revised readmeKenneth Reitzbefore adoption20b4bb7
lines 25–27why, one step back25 'application/json; charset=utf8'26 >>> r.encoding27 'utf-8'Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4
line 28why, one step back28 >>> r.textrevised readmeKenneth Reitzbefore adoption20b4bb7
lines 29–31why, one step back29 u'{"type":"User"...'30 >>> r.json()31 {u'disk_usage': 368627, u'private_gists': 484, ...}Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4
line 32why, one step back32readme cleanupKenneth Reitzbefore adoption4095b26
line 33why, one step back33See `the similar code, sans Requests <https://gist.github.com/973705>`_.Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4
line 34why, one step back34updateKenneth Reitzbefore adoption54d3b59
lines 35–41why, one step back35Requests allows you to send *organic, grass-fed* HTTP/1.1 requests, without the36need for manual labor. There's no need to manually add query strings to your37URLs, or to form-encode your POST data. Keep-alive and HTTP connection pooling38are 100% automatic, powered by `urllib3 <https://github.com/shazow/urllib3>`_,39which is embedded within Requests.4041Besides, all the cool kids are doing it. Requests is one of the mostUpdate README.rstKenneth Reitzbefore adoption00c0a80
line 42why, one step back42downloaded Python packages of all time, pulling in over 7,000,000 downloadsupdateKenneth Reitzbefore adoption54d3b59
line 43why, one step back43every month. You don't want to be left out!Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4
line 44why, one step back44updateKenneth Reitzbefore adoption54d3b59
lines 45–46why, one step back45Feature Support46---------------Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4
line 47why, one step back47updateKenneth Reitzbefore adoption54d3b59
lines 48–49why, one step back48Requests is ready for today's web.49Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4
lines 50–56why, one step back50- International Domains and URLs51- Keep-Alive & Connection Pooling52- Sessions with Cookie Persistence53- Browser-style SSL Verification54- Basic/Digest Authentication55- Elegant Key/Value Cookies56- Automatic Decompressionrevised readmeKenneth Reitzbefore adoption20b4bb7
line 57why, one step back57- Automatic Content DecodingMerge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4
lines 58–59why, one step back58- Unicode Response Bodies59- Multipart File UploadsupdateKenneth Reitzbefore adoption54d3b59
line 60why, one step back60- HTTP(S) Proxy SupportMerge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4
line 61why, one step back61- Connection Timeoutsrevised readmeKenneth Reitzbefore adoption20b4bb7
line 62why, one step back62- Streaming DownloadsupdateKenneth Reitzbefore adoption54d3b59
line 63why, one step back63- ``.netrc`` Supportrevised readmeKenneth Reitzbefore adoption20b4bb7
line 64why, one step back64- Chunked RequestsMerge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4
lines 65–66why, one step back65- Thread-safety66updateKenneth Reitzbefore adoption54d3b59
lines 67–68why, one step back67Requests supports Python 2.6 — 3.5, and runs great on PyPy.68Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4
lines 69–76why, one step back69Installation70------------7172To install Requests, simply:7374.. code-block:: bash7576 $ pip install requestsUpdate README.rstKenneth Reitzbefore adoption169b7ed
line 77why, one step back77 ✨🍰✨Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4
line 78why, one step back78updateKenneth Reitzbefore adoption54d3b59
line 79why, one step back79Satisfaction, guaranteed.Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4
lines 80–83why, one step back8081Documentation82-------------83Update README.rstKenneth Reitzbefore adoption4d97b5b
line 84why, one step back84Fantastic documentation is available at http://docs.python-requests.org/, for a limited time only.Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4
lines 85–86why, one step back8586Update README.rstKenneth Reitzbefore adoption4d97b5b
lines 87–88why, one step back87How to Contribute88-----------------Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4
lines 89–97why, one step back8990#. 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.91#. Fork `the repository`_ on GitHub to start making your changes to the **master** branch (or branch off of it).92#. Write a test which shows that the bug was fixed or that the feature works as expected.93#. Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to AUTHORS_.9495.. _`the repository`: http://github.com/kennethreitz/requests96.. _AUTHORS: https://github.com/kennethreitz/requests/blob/master/AUTHORS.rst97.. _Contributor Friendly: https://github.com/kennethreitz/requests/issues?direction=desc&labels=Contributor+Friendly&page=1&sort=updated&state=open