index.rst
This file
Path
docs/index.rst
176 lines · 5.0 KiB
Last changed by
Merge branch 'master' of github.com:kennethreitz/requestsKenneth Reitzbefore adoptionb60c5a5
History of this fileTake it
The walk stopped after 200 commits: lines older than 9e9d2c6 point at it.
Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6
lines 1–10why, one step back1.. 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>`)10improved homepageKenneth Reitzbefore adoption6bd091c
lines 11–31why, one step back11.. image:: https://img.shields.io/pypi/l/requests.svg12 :target: https://pypi.python.org/pypi/requests1314.. image:: https://img.shields.io/pypi/wheel/requests.svg15 :target: https://pypi.python.org/pypi/requests1617.. image:: https://img.shields.io/pypi/pyversions/requests.svg18 :target: https://pypi.python.org/pypi/requests1920.. image:: https://travis-ci.org/kennethreitz/requests.svg?branch=master21 :target: https://travis-ci.org/kennethreitz/requests2223.. image:: https://codecov.io/github/kennethreitz/requests/coverage.svg?branch=master24 :target: https://codecov.io/github/kennethreitz/requests25 :alt: codecov.io2627.. image:: https://img.shields.io/badge/Say%20Thanks!-🦉-1EAEDB.svg28 :target: https://saythanks.io/to/kennethreitz293031**Requests** is the only *Non-GMO* HTTP library for Python, safe for humanMake BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6
lines 32–33why, one step back32consumption.33improved homepageKenneth Reitzbefore adoption6bd091c
line 34why, one step back34*Warning: Recreational use of other HTTP libraries may result in dangerous side-effects,Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6
line 35why, one step back35including: security vulnerabilities, verbose code, reinventing the wheel,improved homepageKenneth Reitzbefore adoption6bd091c
line 36why, one step back36constantly reading documentation, depression, headaches, or even death.*Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6
line 37why, one step back37improved homepageKenneth Reitzbefore adoption6bd091c
line 38why, one step back38-------------------Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6
line 39why, one step back39improved homepageKenneth Reitzbefore adoption6bd091c
lines 40–41why, one step back40**Behold, the power of Requests**::41Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6
lines 42–56why, one step back42 >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))43 >>> r.status_code44 20045 >>> r.headers['content-type']46 'application/json; charset=utf8'47 >>> r.encoding48 'utf-8'49 >>> r.text50 u'{"type":"User"...'51 >>> r.json()52 {u'private_gists': 419, u'total_private_repos': 77, ...}5354See `similar code, sans Requests <https://gist.github.com/973705>`_.5556improved homepageKenneth Reitzbefore adoption6bd091c
line 57why, one step back57**Requests** allows you to send *organic, grass-fed* HTTP/1.1 requests, without theMake BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6
lines 58–65why, one step back58need for manual labor. There's no need to manually add query strings to your59URLs, or to form-encode your POST data. Keep-alive and HTTP connection pooling60are 100% automatic, powered by `urllib3 <https://github.com/shazow/urllib3>`_,61which is embedded within Requests.6263User Testimonials64-----------------65Update index.rstKenneth Reitzbefore adoptionb9648ba
line 66why, one step back66The NSA, Her Majesty's Government, Amazon, Google, Twilio, Runscope, Mozilla, Heroku,Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6
line 67why, one step back67PayPal, NPR, Obama for America, Transifex, Native Instruments, The WashingtonRIP ReadabilityKenneth Reitzbefore adoption160d364
line 68why, one step back68Post, Twitter, SoundCloud, Kippt, Sony, and Federal U.S.Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6
lines 69–70why, one step back69Institutions that prefer to be unnamed claim to use Requests internally.70Merge branch 'master' of github.com:kennethreitz/requestsKenneth Reitzbefore adoptionb60c5a5
lines 71–73why, one step back71**Armin Ronacher**—72 *Requests is the perfect example how beautiful an API can be with the73 right level of abstraction.*Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6
line 74why, one step back74Merge branch 'master' of github.com:kennethreitz/requestsKenneth Reitzbefore adoptionb60c5a5
lines 75–77why, one step back75**Matt DeBoard**—76 *I'm going to get `@kennethreitz <https://twitter.com/kennethreitz>`_'s Python requests module tattooed77 on my body, somehow. The whole thing.*Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6
line 78why, one step back78Merge branch 'master' of github.com:kennethreitz/requestsKenneth Reitzbefore adoptionb60c5a5
lines 79–81why, one step back79**Daniel Greenfeld**—80 *Nuked a 1200 LOC spaghetti code library with 10 lines of code thanks to81 `@kennethreitz <https://twitter.com/kennethreitz>`_'s request library. Today has been AWESOME.*Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6
line 82why, one step back82Merge branch 'master' of github.com:kennethreitz/requestsKenneth Reitzbefore adoptionb60c5a5
lines 83–85why, one step back83**Kenny Meyers**—84 *Python HTTP: When in doubt, or when not in doubt, use Requests. Beautiful,85 simple, Pythonic.*Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6
lines 86–87why, one step back8687Requests is one of the most downloaded Python packages of all time, pulling in11,000,000!Kenneth Reitzbefore adoption5ac53c6
line 88why, one step back88over 11,000,000 downloads every month. All the cool kids are doing it!Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6
line 89why, one step back89improved homepageKenneth Reitzbefore adoption6bd091c
lines 90–91why, one step back90Beloved Features91----------------Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6
lines 92–95why, one step back9293Requests is ready for today's web.9495- Keep-Alive & Connection Poolingimproved homepageKenneth Reitzbefore adoption6bd091c
line 96why, one step back96- International Domains and URLsMake BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6
lines 97–98why, one step back97- Sessions with Cookie Persistence98- Browser-style SSL Verificationimproved homepageKenneth Reitzbefore adoption6bd091c
line 99why, one step back99- Automatic Content DecodingMake BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6
lines 100–104why, one step back100- Basic/Digest Authentication101- Elegant Key/Value Cookies102- Automatic Decompression103- Unicode Response Bodies104- HTTP(S) Proxy Supportimproved homepageKenneth Reitzbefore adoption6bd091c
line 105why, one step back105- Multipart File UploadsMake BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6
line 106why, one step back106- Streaming Downloadsimproved homepageKenneth Reitzbefore adoption6bd091c
line 107why, one step back107- Connection TimeoutsMake BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6
line 108why, one step back108- Chunked Requestsimproved homepageKenneth Reitzbefore adoption6bd091c
line 109why, one step back109- ``.netrc`` SupportMake BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6
lines 110–111why, one step back110- Thread-safety111yes 3.7 tooKenneth Reitzbefore adoption5259966
line 112why, one step back112Requests officially supports Python 2.6–2.7 & 3.3–3.7, and runs great on PyPy.Make BaseAdapter describe the mandatory adapter interface (#3216)Seppo Yli-Ollibefore adoption9e9d2c6
lines 113–176why, one step back113114115The User Guide116--------------117118This part of the documentation, which is mostly prose, begins with some119background information about Requests, then focuses on step-by-step120instructions for getting the most out of Requests.121122.. toctree::123 :maxdepth: 2124125 user/intro126 user/install127 user/quickstart128 user/advanced129 user/authentication130131132The Community Guide133-------------------134135This part of the documentation, which is mostly prose, details the136Requests ecosystem and community.137138.. toctree::139 :maxdepth: 1140141 community/faq142 community/recommended143 community/out-there144 community/support145 community/vulnerabilities146 community/updates147 community/release-process148149The API Documentation / Guide150-----------------------------151152If you are looking for information on a specific function, class, or method,153this part of the documentation is for you.154155.. toctree::156 :maxdepth: 2157158 api159160161The Contributor Guide162---------------------163164If you want to contribute to the project, this part of the documentation is for165you.166167.. toctree::168 :maxdepth: 3169170 dev/contributing171 dev/philosophy172 dev/todo173 dev/authors174175There are no more guides. You are now guideless.176Good luck.