index.rst
This file
Path
docs/index.rst
89 lines · 2.5 KiB
Last changed by
testimonial cleanupKenneth Reitzbefore adoptionef02d02
History of this fileTake it
Documentation start.Kenneth Reitzbefore adoptione76fa91
lines 1–5why, 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.5better titleKenneth Reitzbefore adoption9b16562
lines 6–7why, one step back6Requests: HTTP for Humans7=========================initial doc indexKenneth Reitzbefore adoption80b71a0
line 8why, one step back8docs updateKenneth Reitzbefore adoptiond18ea48
line 9why, one step back9Release v\ |version|. (:ref:`Installation <install>`)initial doc indexKenneth Reitzbefore adoption80b71a0
line 10why, one step back10better titleKenneth Reitzbefore adoption9b16562
line 11why, one step back11Requests is an :ref:`ISC Licensed <isc>` HTTP library, written in Python, for human beings.initial doc indexKenneth Reitzbefore adoption80b71a0
line 12why, one step back12much better indexKenneth Reitzbefore adoption319b570
line 13why, one step back13Most existing Python modules for sending HTTP requests are extremely verboseurllib2Kenneth Reitzbefore adoption1218715
line 14why, one step back14and cumbersome. Python's builtin **urllib2** module provides most ofbetter indexKenneth Reitzbefore adoption874a874
line 15why, one step back15the HTTP capabilities you should need, but the api is thoroughly **broken**.config updateKenneth Reitzbefore adoptionb7970c2
line 16why, one step back16It requires an *enormous* amount of work (even method overrides) to perform the simplest of tasks.initial doc indexKenneth Reitzbefore adoption80b71a0
line 17why, one step back17orgsKenneth Reitzbefore adoption1ebf3af
lines 18–19why, one step back18Things shouldn’t be this way. Not in Python.19initial doc indexKenneth Reitzbefore adoption80b71a0
lines 20–21why, one step back20::21example udpateKenneth Reitzbefore adoption70857f3
lines 22–26why, one step back22 >>> r = requests.get('https://api.github.com', auth=('user', 'pass'))23 >>> r.status_code24 20025 >>> r.headers['content-type']26 'application/json'initial doc indexKenneth Reitzbefore adoption80b71a0
line 27why, one step back27example udpateKenneth Reitzbefore adoption70857f3
line 28why, one step back28See `the same code, without Requests <https://gist.github.com/973705>`_.initial doc indexKenneth Reitzbefore adoption80b71a0
line 29why, one step back29better indexKenneth Reitzbefore adoption874a874
lines 30–34why, one step back30Requests allow you to send **GET**, **HEAD**, **PUT**,31**POST**, and **DELETE** HTTP requests. You can add headers, form data,32multipart files, and parameters with simple Python dictionaries, and access the33response data in the same way. It's powered by :py:class:`urllib2`, but it does34all the hard work and crazy hacks for you.initial doc indexKenneth Reitzbefore adoption80b71a0
line 35why, one step back35much better indexKenneth Reitzbefore adoption319b570
line 36why, one step back36Testimonalsindex cleanupKenneth Reitzbefore adoption0f76e17
line 37why, one step back37-----------orgsKenneth Reitzbefore adoption1ebf3af
line 38why, one step back38testimonial cleanupKenneth Reitzbefore adoptionef02d02
line 39why, one step back39`Twitter, Inc <http://twitter.com>`_ uses Requests internally.initial doc indexKenneth Reitzbefore adoption80b71a0
line 40why, one step back40much better indexKenneth Reitzbefore adoption319b570
lines 41–42why, one step back41**Daniel Greenfeld**42 Nuked a 1200 LOC spaghetti code library with 10 lines of code thanks to @kennethreitz's request library. Today has been AWESOME.initial doc indexKenneth Reitzbefore adoption80b71a0
line 43why, one step back43much better indexKenneth Reitzbefore adoption319b570
line 44why, one step back44**Kenny Meyers**testimonialsKenneth Reitzbefore adoption6b36911
lines 45–51why, one step back45 Python HTTP: When in doubt, or when not in doubt, use Requests. Beautiful, simple, Pythonic.4647**Rich Leland**48 Requests is awesome. That is all.4950**Steve Pike**51 I can never remember how to do it the regular way. ``import requests; requests.get()`` is just so easy!initial doc indexKenneth Reitzbefore adoption80b71a0
lines 52–53why, one step back5253much better indexKenneth Reitzbefore adoption319b570
line 54why, one step back54User Guideindex cleanupKenneth Reitzbefore adoption0f76e17
line 55why, one step back55----------initial doc indexKenneth Reitzbefore adoption80b71a0
line 56why, one step back56much better indexKenneth Reitzbefore adoption319b570
line 57why, one step back57This part of the documentation, which is mostly prose, begins with some background information about Requests, then focuses on step-by-step instructions for getting the most out of Requests.initial doc indexKenneth Reitzbefore adoption80b71a0
line 58why, one step back58much better indexKenneth Reitzbefore adoption319b570
lines 59–60why, one step back59.. toctree::60 :maxdepth: 2initial doc indexKenneth Reitzbefore adoption80b71a0
line 61why, one step back61docs refactorKenneth Reitzbefore adoptionf1f5788
lines 62–63why, one step back62 user/intro63 user/installno quickstart till doneKenneth Reitzbefore adoptiond7f49f3
line 64why, one step back64.. user/quickstartdocs refactorKenneth Reitzbefore adoptionf1f5788
line 65why, one step back65 user/advancedinitial doc indexKenneth Reitzbefore adoption80b71a0
line 66why, one step back66Documentation start.Kenneth Reitzbefore adoptione76fa91
line 67why, one step back67much better indexKenneth Reitzbefore adoption319b570
line 68why, one step back68API Documentationindex cleanupKenneth Reitzbefore adoption0f76e17
line 69why, one step back69-----------------Documentation start.Kenneth Reitzbefore adoptione76fa91
line 70why, one step back70much better indexKenneth Reitzbefore adoption319b570
lines 71–73why, one step back71If you are looking for information on a specific function, class or method,72this part of the documentation is for you.73Documentation start.Kenneth Reitzbefore adoptione76fa91
lines 74–75why, one step back74.. toctree::75 :maxdepth: 2much better indexKenneth Reitzbefore adoption319b570
lines 76–79why, one step back7677 api7879index cleanupKenneth Reitzbefore adoption0f76e17
lines 80–81why, one step back80Developer Guide81---------------much better indexKenneth Reitzbefore adoption319b570
lines 82–88why, one step back8283If you want to contribute to the project, this part of the documentation is for84you.8586.. toctree::87 :maxdepth: 288docs refactorKenneth Reitzbefore adoptionf1f5788
line 89why, one step back89 dev/internals