index.rst
This file
Path
docs/index.rst
154 lines · 4.1 KiB
Last changed by
improvements to indexKenneth Reitzbefore adoption41c26ce
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 the only *Non-GMO* HTTP library for Python, safe for human12consumption.1314**Warning:** Recreational use of other HTTP libraries may result in dangerous side-effects,15including: security vulnerabilities, verbose code, reinventing the wheel,16constantly reading documentation, depression, headaches, or even death.1718Behold, the power of Requests::1920 >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))21 >>> r.status_code22 20023 >>> r.headers['content-type']24 'application/json; charset=utf8'25 >>> r.encoding26 'utf-8'27 >>> r.text28 u'{"type":"User"...'29 >>> r.json()30 {u'private_gists': 419, u'total_private_repos': 77, ...}3132See `similar code, sans Requests <https://gist.github.com/973705>`_.333435Requests allows you to send *organic, grass-fed* HTTP/1.1 requests, without the36need for manual labor. There's no need to manually add query strings to your37URLs, or to form-encode your POST data. Keep-alive and HTTP connection pooling38are 100% automatic, powered by `urllib3 <https://github.com/shazow/urllib3>`_,39which is embedded within Requests.4041User Testimonials42-----------------4344Her Majesty's Government, Amazon, Google, Twilio, Runscope, Mozilla, Heroku,45PayPal, NPR, Obama for America, Transifex, Native Instruments, The Washington46Post, Twitter, SoundCloud, Kippt, Readability, Sony, and Federal U.S.47Institutions that prefer to be unnamed claim to use Requests internally.4849**Armin Ronacher**50 Requests is the perfect example how beautiful an API can be with the51 right level of abstraction.5253**Matt DeBoard**54 I'm going to get @kennethreitz's Python requests module tattooed55 on my body, somehow. The whole thing.5657**Daniel Greenfeld**58 Nuked a 1200 LOC spaghetti code library with 10 lines of code thanks to59 @kennethreitz's request library. Today has been AWESOME.6061**Kenny Meyers**62 Python HTTP: When in doubt, or when not in doubt, use Requests. Beautiful,63 simple, Pythonic.6465Requests is one of the most downloaded Python packages of all time, pulling in66over 7,000,000 downloads every month. All the cool kids are doing it!6768Supported Features69------------------7071Requests is ready for today's web.7273- International Domains and URLs74- Keep-Alive & Connection Pooling75- Sessions with Cookie Persistence76- Browser-style SSL Verification77- Basic/Digest Authentication78- Elegant Key/Value Cookies79- Automatic Decompression80- Automatic Content Decoding81- Unicode Response Bodies82- Multipart File Uploads83- HTTP(S) Proxy Support84- Connection Timeouts85- Streaming Downloads86- ``.netrc`` Support87- Chunked Requests88- Thread-safety8990Requests supports Python 2.6 — 3.5, and runs great on PyPy.919293The User Guide94--------------9596This part of the documentation, which is mostly prose, begins with some97background information about Requests, then focuses on step-by-step98instructions for getting the most out of Requests.99100.. toctree::101 :maxdepth: 2102103 user/intro104 user/install105 user/quickstart106 user/advanced107 user/authentication108109110The Community Guide111-------------------112113This part of the documentation, which is mostly prose, details the114Requests ecosystem and community.115116.. toctree::117 :maxdepth: 1118119 community/faq120 community/recommended121 community/out-there122 community/support123 community/vulnerabilities124 community/updates125 community/release-process126127The API Documentation / Guide128-----------------------------129130If you are looking for information on a specific function, class, or method,131this part of the documentation is for you.132133.. toctree::134 :maxdepth: 2135136 api137138139The Contributor Guide140---------------------141142If you want to contribute to the project, this part of the documentation is for143you.144145.. toctree::146 :maxdepth: 3147148 dev/contributing149 dev/philosophy150 dev/todo151 dev/authors152153There are no more guides. You are now guideless.154Good luck.