Skip to content
Myr

readme cleanup

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 2d0d291 · Browse files · 1 file+3 added−9 removed
This commit

State

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

Diff stats

1 file+3 added−9 removed

  • other:+3 added−9 removed

1 file+3 added−9 removed

modified:README.rst+3 added-9 removed
8 unmodified lines
910**Requests** is the only *Non-GMO* HTTP library for Python, safe for human11beings.1213Most existing Python modules for sending HTTP requests are extremely14verbose and cumbersome. Python's builtin urllib2 module provides most of15the HTTP capabilities you should need, but the API is thoroughly broken.16It requires an enormous amount of work (even method overrides) to17consumption.1813Consumption of other HTTP libraries may result in dangerous side-effects,14including: security vulnerabilities, verbose code, reinventing the wheel,15constantly reading documentation, depression, headaches, or even death.1617.. code-block:: python1825 >>> r = requests.get('https://api.github.com', auth=('user', 'pass'))19 >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))20 >>> r.status_code21 20022 >>> r.headers['content-type']23 'application/json; charset=utf8'
3 unmodified lines
27 u'{"type":"User"...'28 >>> r.json()29 {u'disk_usage': 368627, u'private_gists': 484, ...}3037See `the same code, before Requests <https://gist.github.com/973705>`_.31See `the similar code, sans Requests <https://gist.github.com/973705>`_.3233Requests allows you to send *organic, grass-fed* HTTP/1.1 requests, very well.34Headers, cookies, json/form data, multipart files, and url parameters can all35be provided with simple Python dictionaries. SSL certificates are automatically36verified against a carefully crafted bundle of root certificates, included.43Responses feature RFC-compliant redirection history, unicode/bytes> bodies, a37Responses feature RFC-compliant redirection history, unicode/bytes bodies, a38case-insensitive header dictionary, and more.394041Special Features
45 unmodified lines