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
1.. 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>`)1011Requests is an :ref:`ISC Licensed <isc>` HTTP library, written in Python, for human beings.1213Most existing Python modules for sending HTTP requests are extremely verbose14and cumbersome. Python's builtin **urllib2** module provides most of15the HTTP capabilities you should need, but the api is thoroughly **broken**.16It requires an *enormous* amount of work (even method overrides) to perform the simplest of tasks.1718Things shouldn’t be this way. Not in Python.1920::2122 >>> r = requests.get('https://api.github.com', auth=('user', 'pass'))23 >>> r.status_code24 20025 >>> r.headers['content-type']26 'application/json'2728See `the same code, without Requests <https://gist.github.com/973705>`_.2930Requests 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.3536Testimonals37-----------3839`Twitter, Inc <http://twitter.com>`_ uses Requests internally.4041**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.4344**Kenny Meyers**45 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!525354User Guide55----------5657This 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.5859.. toctree::60 :maxdepth: 26162 user/intro63 user/install64.. user/quickstart65 user/advanced666768API Documentation69-----------------7071If you are looking for information on a specific function, class or method,72this part of the documentation is for you.7374.. toctree::75 :maxdepth: 27677 api787980Developer Guide81---------------8283If you want to contribute to the project, this part of the documentation is for84you.8586.. toctree::87 :maxdepth: 28889 dev/internals