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
Provenance
- Commit
319b570- Tree
7fc970c- Author
Kenneth Reitz <me@kennethreitz.com>- Committer
Kenneth Reitz <me@kennethreitz.com>- Parent
f7481ad
1 file changed+43 added−12 removed
modified:docs/index.rst+43 added-12 removed
8 unmodified lines9 Release |version|.10 11 Requests is an :ref:`ISC Licensed <isc>` HTTP library, written in Python, for human beings.12 13-Most 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.13+Most existing Python modules for sending HTTP requests are extremely verbose14+and cumbersome. Python's builtin :py:class:`urllib2` module provides all the15+HTTP capabilities required, but the api is thoroughly **broken**. It reqires an16+*enormous* amount of work (even method overrides) to perform the simplest of17+tasks.18 15-Enter 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.19+Enter Requests. Requests allow you to send **GET**, **HEAD**, **PUT**,20+**POST**, and **DELETE** HTTP requests. You can add headers, form data,21+multipart files, and parameters with simple Python dictionaries, and access the22+response data in the same way. It's powered by :py:class:`urllib2`, but it does23+all the hard work and crazy hacks for you.24 25 26 It's Simple27 -----------28 29 How Simple?30 23-24-requests25-~~~~~~~~26-31 ::32 33 >>> import requests34 >>> r = requests.get('https://convore.com/api', auth=('username', 'password'))35 >>> r.headers['content-encoding']36 json37 38+See `the same code, without Requests <http://gist.github.com/some-gist>`39 35-urllib236-~~~~~~~40 38-::41+Testimonals42+~~~~~~~~~~~43 40- # 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.46 47+**Kenny Meyers**48+ Python HTTP: When in doubt, or when not in doubt, use Requests. Beautiful, simple, Pythonic.49 43-I recommend you start with :ref:`Installation <install>`.50 51+User Guide52+~~~~~~~~~~53 54+This 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.55 56+.. toctree::57+ :maxdepth: 258 59+ guide60 61 50-Contents:62+API Documentation63+~~~~~~~~~~~~~~~~~64 65+If you are looking for information on a specific function, class or method,66+this part of the documentation is for you.67+68 .. toctree::69 :maxdepth: 270 71+ api72+73+74+Developer Documentation75+~~~~~~~~~~~~~~~~~~~~~~~76+77+If you want to contribute to the project, this part of the documentation is for78+you.79+80+.. toctree::81+ :maxdepth: 282+83+ api84+85+86 Indices and tables87 ==================88 89 * :ref:`genindex`3 unmodified lines