Skip to content
Myr

index.rst

This file

Path

docs/index.rst

154 lines · 4.1 KiB

Last changed by

Merge pull request #3703 from kennethreitz/revert-3700-masterKenneth Reitzbefore adoption5b66b36

History of this file

Take it

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

Merge pull request #2994 from Stranger6667/fix-bad-testCory Benfieldbefore adoption6143b7e

lines 1–40why, 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>`)1011Requests is the only *Non-GMO* HTTP library for Python, safe for human12consumption.1314**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.1718Behold, the power of Requests::1920 >>> 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, ...}3132See `similar code, sans Requests <https://gist.github.com/973705>`_.333435Requests 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>`_,39which is embedded within Requests.40

improvements to indexKenneth Reitzbefore adoption41c26ce

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

Merge pull request #2994 from Stranger6667/fix-bad-testCory Benfieldbefore adoption6143b7e

line 43why, one step back
43

Update index.rstKenneth Reitzbefore adoptionb9648ba

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

Merge pull request #2994 from Stranger6667/fix-bad-testCory Benfieldbefore adoption6143b7e

lines 45–65why, one step back
45PayPal, NPR, Obama for America, Transifex, Native Instruments, The Washington
46Post, Twitter, SoundCloud, Kippt, Readability, Sony, and Federal U.S.47Institutions that prefer to be unnamed claim to use Requests internally.4849**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.6465Requests 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 #2994 from Stranger6667/fix-bad-testCory Benfieldbefore adoption6143b7e

line 67why, one step back
67

improvements to indexKenneth Reitzbefore adoption41c26ce

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

Merge pull request #2994 from Stranger6667/fix-bad-testCory Benfieldbefore adoption6143b7e

lines 70–89why, 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 Decompression80- Automatic Content Decoding81- Unicode Response Bodies82- Multipart File Uploads83- HTTP(S) Proxy Support84- Connection Timeouts85- Streaming Downloads86- ``.netrc`` Support87- Chunked Requests88- Thread-safety89

Update index.rstKenneth Reitzbefore adoption9313978

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

Merge pull request #2994 from Stranger6667/fix-bad-testCory Benfieldbefore adoption6143b7e

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 #2994 from Stranger6667/fix-bad-testCory Benfieldbefore adoption6143b7e

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 #2994 from Stranger6667/fix-bad-testCory Benfieldbefore adoption6143b7e

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 #2994 from Stranger6667/fix-bad-testCory Benfieldbefore adoption6143b7e

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 #2994 from Stranger6667/fix-bad-testCory Benfieldbefore adoption6143b7e

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 #2994 from Stranger6667/fix-bad-testCory Benfieldbefore adoption6143b7e

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 #2994 from Stranger6667/fix-bad-testCory Benfieldbefore adoption6143b7e

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.