Skip to content
Myr

index.rst

This file

Path

docs/index.rst

176 lines · 5.0 KiB

Last changed by

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

History of this file

Take it

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

Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6

lines 1–10why, one step back
1.. Requests documentation master file, created by
2 sphinx-quickstart on Sun Feb 13 23:54:25 2011.3 You can adapt this file completely to your liking, but it should at least4 contain the root `toctree` directive.56Requests: HTTP for Humans7=========================89Release v\ |version|. (:ref:`Installation <install>`)10

improved homepageKenneth Reitzbefore adoption6bd091c

lines 11–31why, one step back
11.. image:: https://img.shields.io/pypi/l/requests.svg
12 :target: https://pypi.python.org/pypi/requests1314.. image:: https://img.shields.io/pypi/wheel/requests.svg15 :target: https://pypi.python.org/pypi/requests1617.. image:: https://img.shields.io/pypi/pyversions/requests.svg18 :target: https://pypi.python.org/pypi/requests1920.. image:: https://travis-ci.org/kennethreitz/requests.svg?branch=master21 :target: https://travis-ci.org/kennethreitz/requests2223.. image:: https://codecov.io/github/kennethreitz/requests/coverage.svg?branch=master24 :target: https://codecov.io/github/kennethreitz/requests25 :alt: codecov.io2627.. image:: https://img.shields.io/badge/Say%20Thanks!-🦉-1EAEDB.svg28 :target: https://saythanks.io/to/kennethreitz293031**Requests** is the only *Non-GMO* HTTP library for Python, safe for human

Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6

lines 32–33why, one step back
32consumption.
33

improved homepageKenneth Reitzbefore adoption6bd091c

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

Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6

line 35why, one step back
35including: security vulnerabilities, verbose code, reinventing the wheel,

improved homepageKenneth Reitzbefore adoption6bd091c

line 36why, one step back
36constantly reading documentation, depression, headaches, or even death.*

Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6

line 37why, one step back
37

improved homepageKenneth Reitzbefore adoption6bd091c

line 38why, one step back
38-------------------

Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6

line 39why, one step back
39

improved homepageKenneth Reitzbefore adoption6bd091c

lines 40–41why, one step back
40**Behold, the power of Requests**::
41

Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6

lines 42–56why, one step back
42 >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))
43 >>> r.status_code44 20045 >>> r.headers['content-type']46 'application/json; charset=utf8'47 >>> r.encoding48 'utf-8'49 >>> r.text50 u'{"type":"User"...'51 >>> r.json()52 {u'private_gists': 419, u'total_private_repos': 77, ...}5354See `similar code, sans Requests <https://gist.github.com/973705>`_.5556

improved homepageKenneth Reitzbefore adoption6bd091c

line 57why, one step back
57**Requests** allows you to send *organic, grass-fed* HTTP/1.1 requests, without the

Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6

lines 58–65why, one step back
58need for manual labor. There's no need to manually add query strings to your
59URLs, or to form-encode your POST data. Keep-alive and HTTP connection pooling60are 100% automatic, powered by `urllib3 <https://github.com/shazow/urllib3>`_,61which is embedded within Requests.6263User Testimonials64-----------------65

Update index.rstKenneth Reitzbefore adoptionb9648ba

line 66why, one step back
66The NSA, Her Majesty's Government, Amazon, Google, Twilio, Runscope, Mozilla, Heroku,

Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6

line 67why, one step back
67PayPal, NPR, Obama for America, Transifex, Native Instruments, The Washington

RIP ReadabilityKenneth Reitzbefore adoption160d364

line 68why, one step back
68Post, Twitter, SoundCloud, Kippt, Sony, and Federal U.S.

Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6

lines 69–70why, one step back
69Institutions that prefer to be unnamed claim to use Requests internally.
70

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

lines 71–73why, one step back
71**Armin Ronacher**—
72 *Requests is the perfect example how beautiful an API can be with the73 right level of abstraction.*

Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6

line 74why, one step back
74

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

lines 75–77why, one step back
75**Matt DeBoard**—
76 *I'm going to get `@kennethreitz <https://twitter.com/kennethreitz>`_'s Python requests module tattooed77 on my body, somehow. The whole thing.*

Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6

line 78why, one step back
78

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

lines 79–81why, one step back
79**Daniel Greenfeld**—
80 *Nuked a 1200 LOC spaghetti code library with 10 lines of code thanks to81 `@kennethreitz <https://twitter.com/kennethreitz>`_'s request library. Today has been AWESOME.*

Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6

line 82why, one step back
82

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

lines 83–85why, one step back
83**Kenny Meyers**—
84 *Python HTTP: When in doubt, or when not in doubt, use Requests. Beautiful,85 simple, Pythonic.*

Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6

lines 86–87why, one step back
86
87Requests is one of the most downloaded Python packages of all time, pulling in

11,000,000!Kenneth Reitzbefore adoption5ac53c6

line 88why, one step back
88over 11,000,000 downloads every month. All the cool kids are doing it!

Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6

line 89why, one step back
89

improved homepageKenneth Reitzbefore adoption6bd091c

lines 90–91why, one step back
90Beloved Features
91----------------

Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6

lines 92–95why, one step back
92
93Requests is ready for today's web.9495- Keep-Alive & Connection Pooling

improved homepageKenneth Reitzbefore adoption6bd091c

line 96why, one step back
96- International Domains and URLs

Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6

lines 97–98why, one step back
97- Sessions with Cookie Persistence
98- Browser-style SSL Verification

improved homepageKenneth Reitzbefore adoption6bd091c

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

Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6

lines 100–104why, one step back
100- Basic/Digest Authentication
101- Elegant Key/Value Cookies102- Automatic Decompression103- Unicode Response Bodies104- HTTP(S) Proxy Support

improved homepageKenneth Reitzbefore adoption6bd091c

line 105why, one step back
105- Multipart File Uploads

Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6

line 106why, one step back
106- Streaming Downloads

improved homepageKenneth Reitzbefore adoption6bd091c

line 107why, one step back
107- Connection Timeouts

Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6

line 108why, one step back
108- Chunked Requests

improved homepageKenneth Reitzbefore adoption6bd091c

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

Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6

lines 110–111why, one step back
110- Thread-safety
111

yes 3.7 tooKenneth Reitzbefore adoption5259966

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

Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6

lines 113–176why, one step back
113
114115The User Guide116--------------117118This part of the documentation, which is mostly prose, begins with some119background information about Requests, then focuses on step-by-step120instructions for getting the most out of Requests.121122.. toctree::123 :maxdepth: 2124125 user/intro126 user/install127 user/quickstart128 user/advanced129 user/authentication130131132The Community Guide133-------------------134135This part of the documentation, which is mostly prose, details the136Requests ecosystem and community.137138.. toctree::139 :maxdepth: 1140141 community/faq142 community/recommended143 community/out-there144 community/support145 community/vulnerabilities146 community/updates147 community/release-process148149The API Documentation / Guide150-----------------------------151152If you are looking for information on a specific function, class, or method,153this part of the documentation is for you.154155.. toctree::156 :maxdepth: 2157158 api159160161The Contributor Guide162---------------------163164If you want to contribute to the project, this part of the documentation is for165you.166167.. toctree::168 :maxdepth: 3169170 dev/contributing171 dev/philosophy172 dev/todo173 dev/authors174175There are no more guides. You are now guideless.176Good luck.