index.rst
This file
Path
docs/index.rst
154 lines · 4.1 KiB
Last changed by
improvements to indexKenneth Reitzbefore adoption41c26ce
History of this fileTake 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 back1.. Requests documentation master file, created by2 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>`)10updateKenneth Reitzbefore adoption54d3b59
lines 11–12why, one step back11Requests is the only *Non-GMO* HTTP library for Python, safe for human12consumption.Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4
line 13why, one step back13updateKenneth Reitzbefore adoption54d3b59
lines 14–16why, one step back14**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 back17behold the power of requestsKenneth Reitzbefore adoption7461371
line 18why, one step back18Behold, the power of Requests::Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4
lines 19–31why, one step back1920 >>> 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, ...}31updateKenneth Reitzbefore adoption54d3b59
line 32why, one step back32See `similar code, sans Requests <https://gist.github.com/973705>`_.Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4
line 33why, one step back33updateKenneth Reitzbefore adoption54d3b59
lines 34–38why, one step back3435Requests 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 back39which is embedded within Requests.40improvements to indexKenneth Reitzbefore adoption41c26ce
lines 41–42why, one step back41User Testimonials42-----------------Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4
lines 43–45why, one step back4344Her Majesty's Government, Amazon, Google, Twilio, Runscope, Mozilla, Heroku,45PayPal, NPR, Obama for America, Transifex, Native Instruments, The WashingtonupdateKenneth Reitzbefore adoption54d3b59
lines 46–47why, one step back46Post, 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 back4849**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.64docs fixKenneth Reitzbefore adoption20290e3
line 65why, one step back65Requests is one of the most downloaded Python packages of all time, pulling inUpdate index.rstKenneth Reitzbefore adoption3a77b59
line 66why, one step back66over 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 back67improvements to indexKenneth Reitzbefore adoption41c26ce
lines 68–69why, one step back68Supported Features69------------------Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4
lines 70–79why, one step back7071Requests 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 DecompressionupdateKenneth Reitzbefore adoption54d3b59
line 80why, one step back80- Automatic Content DecodingMerge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4
lines 81–82why, one step back81- Unicode Response Bodies82- Multipart File UploadsupdateKenneth Reitzbefore adoption54d3b59
line 83why, one step back83- HTTP(S) Proxy SupportMerge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4
line 84why, one step back84- Connection TimeoutsupdateKenneth Reitzbefore adoption54d3b59
lines 85–90why, one step back85- Streaming Downloads86- ``.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 back9192improvements to indexKenneth Reitzbefore adoption41c26ce
lines 93–94why, one step back93The User Guide94--------------Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4
lines 95–109why, one step back9596This 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/authentication108109improvements to indexKenneth Reitzbefore adoption41c26ce
lines 110–111why, one step back110The Community Guide111-------------------Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4
lines 112–126why, one step back112113This 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-process126improvements to indexKenneth Reitzbefore adoption41c26ce
lines 127–128why, one step back127The API Documentation / Guide128-----------------------------Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4
line 129why, one step back129improvements to indexKenneth Reitzbefore adoption41c26ce
line 130why, one step back130If 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 back131this part of the documentation is for you.132133.. toctree::134 :maxdepth: 2135136 api137138improvements to indexKenneth Reitzbefore adoption41c26ce
lines 139–140why, one step back139The Contributor Guide140---------------------Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4
lines 141–145why, one step back141142If you want to contribute to the project, this part of the documentation is for143you.144145.. toctree::lettersKenneth Reitzbefore adoptionca303cd
line 146why, one step back146 :maxdepth: 3Merge pull request #2729 from smiley/patch-1Cory Benfieldbefore adoption3cf4ec4
lines 147–151why, one step back147148 dev/contributing149 dev/philosophy150 dev/todo151 dev/authorscheat codeKenneth Reitzbefore adoption1b1f4ac
lines 152–154why, one step back152153There are no more guides. You are now guideless.154Good luck.