update
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Kenneth Reitz · committed by Kenneth Reitz · parent ba2b355 · Browse files · 2 files·+49 added−29 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+49 added−29 removed
- other:+49 added−29 removed
Provenance
- Commit
54d3b59- Tree
2138cdb- Author
Kenneth Reitz <me@kennethreitz.org>- Committer
Kenneth Reitz <me@kennethreitz.org>- Parent
ba2b355
2 files changed+49 added−29 removed
modified:docs/index.rst+29 added-19 removed
6 unmodified lines7 =========================8 9 Release v\ |version|. (:ref:`Installation <install>`)10 11-Requests is an :ref:`Apache2 Licensed <apache2>` HTTP library, written in12-Python, for human beings.11+Requests is the only *Non-GMO* HTTP library for Python, safe for human12+consumption.13 14-Python's standard **urllib2** module provides most of15-the HTTP capabilities you need, but the API is thoroughly **broken**.16-It was built for a different time — and a different web. It requires an17-*enormous* amount of work (even method overrides) to perform the simplest of18-tasks.14+**Warning:** Recreational use of other HTTP libraries may result in dangerous side-effects,15+including: security vulnerabilities, verbose code, reinventing the wheel,16+constantly reading documentation, depression, headaches, or even death.17 20-Things shouldn’t be this way. Not in Python.21-18 ::19 20 >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))21 >>> r.status_code6 unmodified lines28 u'{"type":"User"...'29 >>> r.json()30 {u'private_gists': 419, u'total_private_repos': 77, ...}31 36-See `similar code, without Requests <https://gist.github.com/973705>`_.32+See `similar code, sans Requests <https://gist.github.com/973705>`_.33 38-Requests takes all of the work out of Python HTTP/1.1 — making your integration39-with web services seamless. There's no need to manually add query strings to40-your URLs, or to form-encode your POST data. Keep-alive and HTTP connection41-pooling are 100% automatic, powered by `urllib3 <https://github.com/shazow/urllib3>`_,34+35+Requests allows you to send *organic, grass-fed* HTTP/1.1 requests, without the36+need for manual labor. There's no need to manually add query strings to your37+URLs, or to form-encode your POST data. Keep-alive and HTTP connection pooling38+are 100% automatic, powered by `urllib3 <https://github.com/shazow/urllib3>`_,39 which is embedded within Requests.40 41+But wait, there's more! Headers, cookies, json/form data, multipart files, and42+url parameters can all be provided with standard Python dictionaries.43+Responses feature RFC-compliant redirection history, unicode/bytes bodies, a44+case-insensitive header dictionary, and more.45 46+Besides, all the cool kids are doing it. Requests is one of the most47+downloaded Python packages of all time, pulling in over 6,000,000 downloads48+every month. You don't want to be left out!49+50 Testimonials51 ------------52 53 Her Majesty's Government, Amazon, Google, Twilio, Runscope, Mozilla, Heroku,54 PayPal, NPR, Obama for America, Transifex, Native Instruments, The Washington50-Post, Twitter, SoundCloud, Kippt, Readability, Sony, and Federal US Institutions that prefer to be unnamed51-use Requests internally. It has been downloaded over 60,000,000 times from PyPI.55+Post, Twitter, SoundCloud, Kippt, Readability, Sony, and Federal U.S.56+Institutions that prefer to be unnamed claim to use Requests internally.57 58 **Armin Ronacher**59 Requests is the perfect example how beautiful an API can be with the60 right level of abstraction.22 unmodified lines83 - Browser-style SSL Verification84 - Basic/Digest Authentication85 - Elegant Key/Value Cookies86 - Automatic Decompression87+- Automatic Content Decoding88 - Unicode Response Bodies89 - Multipart File Uploads90+- HTTP(S) Proxy Support91 - Connection Timeouts92+- Streaming Downloads85-- ``.netrc`` support86-- Python 2.6—3.587-- Thread-safe.93+- ``.netrc`` Support94+- Chunked Requests95+- Thread-safety96 97+Requests supports Python 2.6 — 3.5, and runs great on PyPy.98 99+100 User Guide101 ----------102 103 This part of the documentation, which is mostly prose, begins with some55 unmodified linesmodified:README.rst+20 added-10 removed
28 unmodified lines29 {u'disk_usage': 368627, u'private_gists': 484, ...}30 31 See `the similar code, sans Requests <https://gist.github.com/973705>`_.32 33-Requests allows you to send *organic, grass-fed* HTTP/1.1 requests, all day.34-Headers, cookies, json/form data, multipart files, and url parameters can all35-be provided with standard Python dictionaries. 33+Requests allows you to send *organic, grass-fed* HTTP/1.1 requests, without the34+need for manual labor. There's no need to manually add query strings to your35+URLs, or to form-encode your POST data. Keep-alive and HTTP connection pooling36+are 100% automatic, powered by `urllib3 <https://github.com/shazow/urllib3>`_,37+which is embedded within Requests.38+39+But wait, there's more! Headers, cookies, json/form data, multipart files, and40+url parameters can all be provided with standard Python dictionaries.41 Responses feature RFC-compliant redirection history, unicode/bytes bodies, a42 case-insensitive header dictionary, and more.43 39-Besides, all the cool kids are doing it. Requests is one of the most 40-downloaded Python packages of all time, pulling in over 6,000,000 downloads 41-every month. You don't want to be left out! 44+Besides, all the cool kids are doing it. Requests is one of the most45+downloaded Python packages of all time, pulling in over 6,000,000 downloads46+every month. You don't want to be left out!47 43-Special Features44-----------------48+Feature Support49+---------------50 51+Requests is ready for today's web.52+53 - International Domains and URLs54 - Keep-Alive & Connection Pooling55 - Sessions with Cookie Persistence56 - Browser-style SSL Verification2 unmodified lines59 - Automatic Decompression60 - Automatic Content Decoding61 - Unicode Response Bodies62 - Multipart File Uploads56-- HTTP(S) proxy support63+- HTTP(S) Proxy Support64 - Connection Timeouts65 - Streaming Downloads66+- ``.netrc`` Support67 - Chunked Requests68 - Thread-safety69 70+Requests supports Python 2.6 — 3.5, and runs great on PyPy.71+72 Installation73 ------------74 75 To install Requests, simply:1 unmodified line77 .. code-block:: bash78 79 $ pip install requests80 71-Satisfaction, guaranteed. 81+Satisfaction, guaranteed.82 83 Documentation84 -------------85 14 unmodified lines