Skip to content
Myr

README.rst

This file

Path

README.rst

110 lines · 3.8 KiB

Last changed by

Merge pull request #4596 from jdufresne/pypiIan Stapleton Cordascobefore adoption2de907a

History of this file

Take it

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

Update README.rstKenneth Reitzbefore adoptione22e3a5

lines 1–2why, one step back
1Requests: HTTP for Humans
2=========================

v2.17.0Kenneth Reitzbefore adoption3857431

lines 3–4why, one step back
3
4.. image:: https://img.shields.io/pypi/v/requests.svg

Merge pull request #4596 from jdufresne/pypiIan Stapleton Cordascobefore adoption2de907a

line 5why, one step back
5 :target: https://pypi.org/project/requests/

v2.17.0Kenneth Reitzbefore adoption3857431

lines 6–7why, one step back
6
7.. image:: https://img.shields.io/pypi/l/requests.svg

Merge pull request #4596 from jdufresne/pypiIan Stapleton Cordascobefore adoption2de907a

line 8why, one step back
8 :target: https://pypi.org/project/requests/

v2.17.0Kenneth Reitzbefore adoption3857431

lines 9–10why, one step back
9
10.. image:: https://img.shields.io/pypi/pyversions/requests.svg

Merge pull request #4596 from jdufresne/pypiIan Stapleton Cordascobefore adoption2de907a

line 11why, one step back
11 :target: https://pypi.org/project/requests/

v2.17.0Kenneth Reitzbefore adoption3857431

line 12why, one step back
12

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

lines 13–14why, one step back
13.. image:: https://codecov.io/github/requests/requests/coverage.svg?branch=master
14 :target: https://codecov.io/github/requests/requests

v2.17.0Kenneth Reitzbefore adoption3857431

line 15why, one step back
15 :alt: codecov.io

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

lines 16–19why, one step back
16
17.. image:: https://img.shields.io/github/contributors/requests/requests.svg18 :target: https://github.com/requests/requests/graphs/contributors19

v2.17.0Kenneth Reitzbefore adoption3857431

lines 20–24why, one step back
20.. image:: https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg
21 :target: https://saythanks.io/to/kennethreitz2223Requests is the only *Non-GMO* HTTP library for Python, safe for human24consumption.

Update README.rstKenneth Reitzbefore adoptione22e3a5

lines 25–26why, one step back
25
26.. image:: https://farm5.staticflickr.com/4317/35198386374_1939af3de6_k_d.jpg

v2.17.0Kenneth Reitzbefore adoption3857431

lines 27–45why, one step back
27
28Behold, the power of Requests:2930.. code-block:: python3132 >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))33 >>> r.status_code34 20035 >>> r.headers['content-type']36 'application/json; charset=utf8'37 >>> r.encoding38 'utf-8'39 >>> r.text40 u'{"type":"User"...'41 >>> r.json()42 {u'disk_usage': 368627, u'private_gists': 484, ...}4344See `the similar code, sans Requests <https://gist.github.com/973705>`_.45

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

line 46why, one step back
46.. image:: https://raw.githubusercontent.com/requests/requests/master/docs/_static/requests-logo-small.png

v2.17.0Kenneth Reitzbefore adoption3857431

lines 47–79why, one step back
47 :target: http://docs.python-requests.org/
484950Requests allows you to send *organic, grass-fed* HTTP/1.1 requests, without the51need for manual labor. There's no need to manually add query strings to your52URLs, or to form-encode your POST data. Keep-alive and HTTP connection pooling53are 100% automatic, thanks to `urllib3 <https://github.com/shazow/urllib3>`_.5455Besides, all the cool kids are doing it. Requests is one of the most56downloaded Python packages of all time, pulling in over 11,000,000 downloads57every month. You don't want to be left out!5859Feature Support60---------------6162Requests is ready for today's web.6364- International Domains and URLs65- Keep-Alive & Connection Pooling66- Sessions with Cookie Persistence67- Browser-style SSL Verification68- Basic/Digest Authentication69- Elegant Key/Value Cookies70- Automatic Decompression71- Automatic Content Decoding72- Unicode Response Bodies73- Multipart File Uploads74- HTTP(S) Proxy Support75- Connection Timeouts76- Streaming Downloads77- ``.netrc`` Support78- Chunked Requests79

Merge pull request #4341 from hugovk/patch-1Nate Prewittbefore adoptione86df6e

line 80why, one step back
80Requests officially supports Python 2.6–2.7 & 3.4–3.6, and runs great on PyPy.

v2.17.0Kenneth Reitzbefore adoption3857431

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

Update README.rstKenneth Reitzbefore adoptiondd57439

line 85why, one step back
85To install Requests, simply use `pipenv <http://pipenv.org/>`_ (or pip, of course):

v2.17.0Kenneth Reitzbefore adoption3857431

lines 86–88why, one step back
86
87.. code-block:: bash88

Update README.rstKenneth Reitzbefore adoptiondd57439

line 89why, one step back
89 $ pipenv install requests

v2.17.0Kenneth Reitzbefore adoption3857431

lines 90–91why, one step back
90 ✨🍰✨
91

Merge pull request #4198 from andportnoy/patch-1Cory Benfieldbefore adoption49c44a0

line 92why, one step back
92Satisfaction guaranteed.

v2.17.0Kenneth Reitzbefore adoption3857431

lines 93–107why, one step back
93
94Documentation95-------------9697Fantastic documentation is available at http://docs.python-requests.org/, for a limited time only.9899100How to Contribute101-----------------102103#. 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.104#. Fork `the repository`_ on GitHub to start making your changes to the **master** branch (or branch off of it).105#. Write a test which shows that the bug was fixed or that the feature works as expected.106#. Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to AUTHORS_.107

Merge branch 'master' of github.com:requests/requestsKenneth Reitzbefore adoption3c1d36b

line 108why, one step back
108.. _`the repository`: https://github.com/requests/requests

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

lines 109–110why, one step back
109.. _AUTHORS: https://github.com/requests/requests/blob/master/AUTHORS.rst
110.. _Contributor Friendly: https://github.com/requests/requests/issues?direction=desc&labels=Contributor+Friendly&page=1&sort=updated&state=open