index.rst
This file
Path
docs/index.rst
131 lines · 3.3 KiB
Last changed by
lessKenneth Reitzbefore adoptionbaf3dcb
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.1213Python's standard **urllib2** module provides most of14the HTTP capabilities you need, but the API is thoroughly **broken**.15It was built for a different time — and a different web. It requires an *enormous* amount of work (even method overrides) to perform the simplest of tasks.1617Things shouldn’t be this way. Not in Python.1819::2021 >>> r = requests.get('https://api.github.com', auth=('user', 'pass'))22 >>> r.status_code23 20424 >>> r.headers['content-type']25 'application/json'26 >>> r.content27 ...2829See `the same code, without Requests <https://gist.github.com/973705>`_.3031Requests takes all of the work out of Python HTTP — making your integration with web services seamless. There's no need to manually add query strings to your URLs, or to form-encode your POST data.323334Testimonials35------------3637`The Washington Post <http://www.washingtonpost.com/>`_,38`Twitter, Inc <http://twitter.com>`_,39`Readability <http://readability.com>`_, and40Federal US Institutions41use Requests internally. It has been installed over 45,000 times from PyPI.4243**Armin Ronacher**44 Requests is the perfect example how beautiful an API can be with the45 right level of abstraction.4647**Matt DeBoard**48 I'm going to get @kennethreitz's Python requests module tattooed49 on my body, somehow. The whole thing.5051**Daniel Greenfeld**52 Nuked a 1200 LOC spaghetti code library with 10 lines of code thanks to53 @kennethreitz's request library. Today has been AWESOME.5455**Kenny Meyers**56 Python HTTP: When in doubt, or when not in doubt, use Requests. Beautiful,57 simple, Pythonic.585960Feature Support61---------------6263Requests is ready for today's web.6465- International Domains and URLs66- Keep-Alive & Connection Pooling67- Sessions with Cookie Persistence68- Basic/Digest Authentication69- Elegant Key/Value Cookies70- Automatic Decompression71- Unicode Response Bodies72- Multipart File Uploads73- Connection Timeouts74- Zero Dependencies75767778User Guide79----------8081This part of the documentation, which is mostly prose, begins with some82background information about Requests, then focuses on step-by-step83instructions for getting the most out of Requests.8485.. toctree::86 :maxdepth: 28788 user/intro89 user/install90 user/quickstart91 user/advanced929394Community Guide95-----------------9697This part of the documentation, which is mostly prose, details the98Requests ecosystem and community.99100.. toctree::101 :maxdepth: 1102103 community/faq104 community/out-there.rst105 community/support106 community/updates107108API Documentation109-----------------110111If you are looking for information on a specific function, class or method,112this part of the documentation is for you.113114.. toctree::115 :maxdepth: 2116117 api118119120Developer Guide121---------------122123If you want to contribute to the project, this part of the documentation is for124you.125126.. toctree::127 :maxdepth: 1128129 dev/internals130 dev/todo131 dev/authors