Skip to content
Myr

README.rst

This file

Path

README.rst

97 lines · 3.2 KiB

Last changed by

Update README.rstKenneth Reitzbefore adoption169b7ed

History of this file

Take 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 back
1Requests: HTTP for Humans
2=========================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/requests9

Update README.rstKenneth Reitzbefore adoptionf997c05

line 10why, one step back
10Requests is the only *Non-GMO* HTTP library for Python, safe for human

Update README.rstKenneth Reitzbefore adoptionab22b3e

line 11why, one step back
11consumption.

Merge branch 'master' of github.com:kennethreitz/requestsKenneth Reitzbefore adoption2d0d291

line 12why, one step back
12

Update README.rstKenneth Reitzbefore adoption72d8293

line 13why, one step back
13**Warning:** Recreational use of other HTTP libraries may result in dangerous side-effects,

revised readmeKenneth Reitzbefore adoption20b4bb7

lines 14–15why, one step back
14including: 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 back
16

behold the power of requestsKenneth Reitzbefore adoption7461371

lines 17–18why, one step back
17Behold, the power of Requests:
18

Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4

lines 19–20why, one step back
19.. code-block:: python
20

readme cleanupKenneth Reitzbefore adoption4095b26

line 21why, one step back
21 >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))

Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4

line 22why, one step back
22 >>> r.status_code

revised readmeKenneth Reitzbefore adoption20b4bb7

line 23why, one step back
23 200

Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4

line 24why, one step back
24 >>> r.headers['content-type']

revised readmeKenneth Reitzbefore adoption20b4bb7

lines 25–27why, one step back
25 'application/json; charset=utf8'
26 >>> r.encoding27 'utf-8'

Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4

line 28why, one step back
28 >>> r.text

revised readmeKenneth Reitzbefore adoption20b4bb7

lines 29–31why, one step back
29 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 back
32

readme cleanupKenneth Reitzbefore adoption4095b26

line 33why, one step back
33See `the similar code, sans Requests <https://gist.github.com/973705>`_.

Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4

line 34why, one step back
34

updateKenneth Reitzbefore adoption54d3b59

lines 35–41why, one step back
35Requests allows you to send *organic, grass-fed* HTTP/1.1 requests, without the
36need 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 most

Update README.rstKenneth Reitzbefore adoption00c0a80

line 42why, one step back
42downloaded Python packages of all time, pulling in over 7,000,000 downloads

updateKenneth Reitzbefore adoption54d3b59

line 43why, one step back
43every month. You don't want to be left out!

Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4

line 44why, one step back
44

updateKenneth Reitzbefore adoption54d3b59

lines 45–46why, one step back
45Feature Support
46---------------

Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4

line 47why, one step back
47

updateKenneth Reitzbefore adoption54d3b59

lines 48–49why, one step back
48Requests is ready for today's web.
49

Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4

lines 50–56why, one step back
50- International Domains and URLs
51- Keep-Alive & Connection Pooling52- Sessions with Cookie Persistence53- Browser-style SSL Verification54- Basic/Digest Authentication55- Elegant Key/Value Cookies56- Automatic Decompression

revised readmeKenneth Reitzbefore adoption20b4bb7

line 57why, one step back
57- Automatic Content Decoding

Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4

lines 58–59why, one step back
58- Unicode Response Bodies
59- Multipart File Uploads

updateKenneth Reitzbefore adoption54d3b59

line 60why, one step back
60- HTTP(S) Proxy Support

Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4

line 61why, one step back
61- Connection Timeouts

revised readmeKenneth Reitzbefore adoption20b4bb7

line 62why, one step back
62- Streaming Downloads

updateKenneth Reitzbefore adoption54d3b59

line 63why, one step back
63- ``.netrc`` Support

revised readmeKenneth Reitzbefore adoption20b4bb7

line 64why, one step back
64- Chunked Requests

Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4

lines 65–66why, one step back
65- Thread-safety
66

updateKenneth Reitzbefore adoption54d3b59

lines 67–68why, one step back
67Requests supports Python 2.6 — 3.5, and runs great on PyPy.
68

Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4

lines 69–76why, one step back
69Installation
70------------7172To install Requests, simply:7374.. code-block:: bash7576 $ pip install requests

Update README.rstKenneth Reitzbefore adoption169b7ed

line 77why, one step back
77 ✨🍰✨

Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4

line 78why, one step back
78

updateKenneth Reitzbefore adoption54d3b59

line 79why, one step back
79Satisfaction, guaranteed.

Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4

lines 80–83why, one step back
80
81Documentation82-------------83

Update README.rstKenneth Reitzbefore adoption4d97b5b

line 84why, one step back
84Fantastic 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 back
85
86

Update README.rstKenneth Reitzbefore adoption4d97b5b

lines 87–88why, one step back
87How to Contribute
88-----------------

Merge pull request #2724 from smiley/masterCory Benfieldbefore adoption98a59e4

lines 89–97why, one step back
89
90#. 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