Skip to content
Myr

README.rst

This file

Path

README.rst

98 lines · 3.3 KiB

Last changed by

Update README.rstKenneth Reitzbefore adoptiondfad00a

History of this file

Take it

The walk stopped after 200 commits: lines older than 72d8293 point at it.

Update README.rstKenneth Reitzbefore adoption72d8293

lines 1–5why, one step back
1Requests: HTTP for Humans
2=========================34.. image:: https://img.shields.io/pypi/v/requests.svg5 :target: https://pypi.python.org/pypi/requests

Update README.rstKenneth Reitzbefore adoptiondfad00a

line 6why, one step back
6

Update README.rstKenneth Reitzbefore adoption72d8293

lines 7–13why, one step back
7Requests is the only *Non-GMO* HTTP library for Python, safe for human
8consumption.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.13

behold the power of requestsKenneth Reitzbefore adoption7461371

lines 14–15why, one step back
14Behold, the power of Requests:
15

Update README.rstKenneth Reitzbefore adoption72d8293

lines 16–30why, one step back
16.. code-block:: python
1718 >>> 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 back
31
32.. image:: http://docs.python-requests.org/en/master/_static/requests-sidebar.png33 :target: http://docs.python-requests.org/34

Update README.rstKenneth Reitzbefore adoption72d8293

line 35why, one step back
35

updateKenneth Reitzbefore adoption54d3b59

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

Update README.rstKenneth Reitzbefore adoption00c0a80

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

updateKenneth Reitzbefore adoption54d3b59

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

Update README.rstKenneth Reitzbefore adoption72d8293

line 45why, one step back
45

updateKenneth Reitzbefore adoption54d3b59

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

Update README.rstKenneth Reitzbefore adoption72d8293

line 48why, one step back
48

updateKenneth Reitzbefore adoption54d3b59

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

Update README.rstKenneth Reitzbefore adoption72d8293

lines 51–60why, one step back
51- International Domains and URLs
52- 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 Uploads

updateKenneth Reitzbefore adoption54d3b59

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

Update README.rstKenneth Reitzbefore adoption72d8293

lines 62–63why, one step back
62- Connection Timeouts
63- Streaming Downloads

updateKenneth Reitzbefore adoption54d3b59

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

Update README.rstKenneth Reitzbefore adoption72d8293

lines 65–67why, one step back
65- Chunked Requests
66- Thread-safety67

Merge pull request #3487 from drpoggi/patch-1Cory Benfieldbefore adoptione4b7040

line 68why, one step back
68Requests officially supports Python 2.6–2.7 & 3.3–3.5, and runs great on PyPy.

updateKenneth Reitzbefore adoption54d3b59

line 69why, one step back
69

Update README.rstKenneth Reitzbefore adoption72d8293

lines 70–77why, one step back
70Installation
71------------7273To install Requests, simply:7475.. code-block:: bash7677 $ pip install requests

Update README.rstKenneth Reitzbefore adoption169b7ed

line 78why, one step back
78 ✨🍰✨

Update README.rstKenneth Reitzbefore adoption72d8293

line 79why, one step back
79

updateKenneth Reitzbefore adoption54d3b59

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

Update README.rstKenneth Reitzbefore adoption72d8293

lines 81–84why, one step back
81
82Documentation83-------------84

Update README.rstKenneth Reitzbefore adoption4d97b5b

line 85why, one step back
85Fantastic documentation is available at http://docs.python-requests.org/, for a limited time only.

Update README.rstKenneth Reitzbefore adoption72d8293

lines 86–87why, one step back
86
87

Update README.rstKenneth Reitzbefore adoption4d97b5b

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

Update README.rstKenneth Reitzbefore adoption72d8293

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