Skip to content
Myr

much better index

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent f7481ad · Browse files · 1 file+43 added−12 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+43 added−12 removed

  • other:+43 added−12 removed

1 file+43 added−12 removed

modified:docs/index.rst+43 added-12 removed
8 unmodified lines
9Release |version|.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 verbose and cumbersome. Python's builtin :py:class:`urllib2` module provides all the HTTP capabilities required, but the api is thoroughly **broken**. It reqires an *enormous* amount of work (even method overrides) to perform the simplest of tasks.13Most existing Python modules for sending HTTP requests are extremely verbose14and cumbersome. Python's builtin :py:class:`urllib2` module provides all the15HTTP capabilities required, but the api is thoroughly **broken**. It reqires an16*enormous* amount of work (even method overrides) to perform the simplest of17tasks.1815Enter Requests. Requests allow you to send **GET**, **HEAD**, **PUT**, **POST**, and **DELETE** HTTP requests. You can add headers, form data, miltipart files, and parameters with simple Python dictionaries, and access the response data in the same way. It's powered by :py:class:`urllib2`, but it does all the hard work and crazy hacks for you.19Enter Requests. Requests allow you to send **GET**, **HEAD**, **PUT**,20**POST**, and **DELETE** HTTP requests. You can add headers, form data,21multipart files, and parameters with simple Python dictionaries, and access the22response data in the same way. It's powered by :py:class:`urllib2`, but it does23all the hard work and crazy hacks for you.242526It's Simple27-----------2829How Simple?302324requests25~~~~~~~~2631::3233 >>> import requests34 >>> r = requests.get('https://convore.com/api', auth=('username', 'password'))35 >>> r.headers['content-encoding']36 json3738See `the same code, without Requests <http://gist.github.com/some-gist>`3935urllib236~~~~~~~4038::41Testimonals42~~~~~~~~~~~4340 # complicated.44**Daniel Greenfeld**45 Nuked a 1200 LOC spaghetti code library with 10 lines of code thanks to @kennethreitz's request library. Today has been AWESOME.4647**Kenny Meyers**48 Python HTTP: When in doubt, or when not in doubt, use Requests. Beautiful, simple, Pythonic.4943I recommend you start with :ref:`Installation <install>`.5051User Guide52~~~~~~~~~~5354This 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.5556.. toctree::57 :maxdepth: 25859 guide606150Contents:62API Documentation63~~~~~~~~~~~~~~~~~6465If you are looking for information on a specific function, class or method,66this part of the documentation is for you.6768.. toctree::69 :maxdepth: 27071 api727374Developer Documentation75~~~~~~~~~~~~~~~~~~~~~~~7677If you want to contribute to the project, this part of the documentation is for78you.7980.. toctree::81 :maxdepth: 28283 api848586Indices and tables87==================8889* :ref:`genindex`
3 unmodified lines