Skip to content
Myr

index.rst

This file

Path

docs/index.rst

154 lines · 4.1 KiB

Last changed by

improvements to indexKenneth Reitzbefore adoption41c26ce

History of this file

Take it

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

Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4

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

updateKenneth Reitzbefore adoption54d3b59

lines 11–12why, one step back
11Requests is the only *Non-GMO* HTTP library for Python, safe for human
12consumption.

Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4

line 13why, one step back
13

updateKenneth Reitzbefore adoption54d3b59

lines 14–16why, one step back
14**Warning:** Recreational use of other HTTP libraries may result in dangerous side-effects,
15including: security vulnerabilities, verbose code, reinventing the wheel,16constantly reading documentation, depression, headaches, or even death.

Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4

line 17why, one step back
17

behold the power of requestsKenneth Reitzbefore adoption7461371

line 18why, one step back
18Behold, the power of Requests::

Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4

lines 19–31why, one step back
19
20 >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))21 >>> r.status_code22 20023 >>> r.headers['content-type']24 'application/json; charset=utf8'25 >>> r.encoding26 'utf-8'27 >>> r.text28 u'{"type":"User"...'29 >>> r.json()30 {u'private_gists': 419, u'total_private_repos': 77, ...}31

updateKenneth Reitzbefore adoption54d3b59

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

Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4

line 33why, one step back
33

updateKenneth Reitzbefore adoption54d3b59

lines 34–38why, one step back
34
35Requests allows you to send *organic, grass-fed* HTTP/1.1 requests, without the36need 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>`_,

Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4

lines 39–40why, one step back
39which is embedded within Requests.
40

improvements to indexKenneth Reitzbefore adoption41c26ce

lines 41–42why, one step back
41User Testimonials
42-----------------

Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4

lines 43–45why, one step back
43
44Her Majesty's Government, Amazon, Google, Twilio, Runscope, Mozilla, Heroku,45PayPal, NPR, Obama for America, Transifex, Native Instruments, The Washington

updateKenneth Reitzbefore adoption54d3b59

lines 46–47why, one step back
46Post, Twitter, SoundCloud, Kippt, Readability, Sony, and Federal U.S.
47Institutions that prefer to be unnamed claim to use Requests internally.

Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4

lines 48–64why, one step back
48
49**Armin Ronacher**50 Requests is the perfect example how beautiful an API can be with the51 right level of abstraction.5253**Matt DeBoard**54 I'm going to get @kennethreitz's Python requests module tattooed55 on my body, somehow. The whole thing.5657**Daniel Greenfeld**58 Nuked a 1200 LOC spaghetti code library with 10 lines of code thanks to59 @kennethreitz's request library. Today has been AWESOME.6061**Kenny Meyers**62 Python HTTP: When in doubt, or when not in doubt, use Requests. Beautiful,63 simple, Pythonic.64

docs fixKenneth Reitzbefore adoption20290e3

line 65why, one step back
65Requests is one of the most downloaded Python packages of all time, pulling in

Update index.rstKenneth Reitzbefore adoption3a77b59

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

Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4

line 67why, one step back
67

improvements to indexKenneth Reitzbefore adoption41c26ce

lines 68–69why, one step back
68Supported Features
69------------------

Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4

lines 70–79why, one step back
70
71Requests is ready for today's web.7273- International Domains and URLs74- Keep-Alive & Connection Pooling75- Sessions with Cookie Persistence76- Browser-style SSL Verification77- Basic/Digest Authentication78- Elegant Key/Value Cookies79- Automatic Decompression

updateKenneth Reitzbefore adoption54d3b59

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

Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4

lines 81–82why, one step back
81- Unicode Response Bodies
82- Multipart File Uploads

updateKenneth Reitzbefore adoption54d3b59

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

Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4

line 84why, one step back
84- Connection Timeouts

updateKenneth Reitzbefore adoption54d3b59

lines 85–90why, one step back
85- Streaming Downloads
86- ``.netrc`` Support87- Chunked Requests88- Thread-safety8990Requests supports Python 2.6 — 3.5, and runs great on PyPy.

Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4

lines 91–92why, one step back
91
92

improvements to indexKenneth Reitzbefore adoption41c26ce

lines 93–94why, one step back
93The User Guide
94--------------

Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4

lines 95–109why, one step back
95
96This part of the documentation, which is mostly prose, begins with some97background information about Requests, then focuses on step-by-step98instructions for getting the most out of Requests.99100.. toctree::101 :maxdepth: 2102103 user/intro104 user/install105 user/quickstart106 user/advanced107 user/authentication108109

improvements to indexKenneth Reitzbefore adoption41c26ce

lines 110–111why, one step back
110The Community Guide
111-------------------

Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4

lines 112–126why, one step back
112
113This part of the documentation, which is mostly prose, details the114Requests ecosystem and community.115116.. toctree::117 :maxdepth: 1118119 community/faq120 community/recommended121 community/out-there122 community/support123 community/vulnerabilities124 community/updates125 community/release-process126

improvements to indexKenneth Reitzbefore adoption41c26ce

lines 127–128why, one step back
127The API Documentation / Guide
128-----------------------------

Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4

line 129why, one step back
129

improvements to indexKenneth Reitzbefore adoption41c26ce

line 130why, one step back
130If you are looking for information on a specific function, class, or method,

Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4

lines 131–138why, one step back
131this part of the documentation is for you.
132133.. toctree::134 :maxdepth: 2135136 api137138

improvements to indexKenneth Reitzbefore adoption41c26ce

lines 139–140why, one step back
139The Contributor Guide
140---------------------

Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4

lines 141–145why, one step back
141
142If you want to contribute to the project, this part of the documentation is for143you.144145.. toctree::

lettersKenneth Reitzbefore adoptionca303cd

line 146why, one step back
146 :maxdepth: 3

Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4

lines 147–151why, one step back
147
148 dev/contributing149 dev/philosophy150 dev/todo151 dev/authors

cheat codeKenneth Reitzbefore adoption1b1f4ac

lines 152–154why, one step back
152
153There are no more guides. You are now guideless.154Good luck.