index.rst
This file
Path
docs/index.rst
136 lines · 3.3 KiB
Last changed by
Update index.rstKenneth Reitzbefore adoption3d968ff
History of this fileTake it
The walk stopped after 200 commits: lines older than 8546a15 point at it.
The library raises NoneType error when file-pointer (fp) resolves to None.Rajiv Mayanibefore adoption8546a15
lines 1–5why, 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.5Update index.rstKenneth Reitzbefore adoptiond26f631
lines 6–7why, one step back6Requests: HTTP for Humans™7==========================The library raises NoneType error when file-pointer (fp) resolves to None.Rajiv Mayanibefore adoption8546a15
lines 8–10why, one step back89Release v\ |version|. (:ref:`Installation <install>`)10Update index.rstKenneth Reitzbefore adoptionb1d584e
lines 11–12why, one step back1112.. image:: https://pepy.tech/badge/requestsUpdate index.rstKenneth Reitzbefore adoption3d968ff
line 13why, one step back13 :target: https://pepy.tech/project/requestsUpdate index.rstKenneth Reitzbefore adoptionb1d584e
line 14why, one step back14 The library raises NoneType error when file-pointer (fp) resolves to None.Rajiv Mayanibefore adoption8546a15
lines 15–23why, one step back15.. image:: https://img.shields.io/pypi/l/requests.svg16 :target: https://pypi.org/project/requests/1718.. image:: https://img.shields.io/pypi/wheel/requests.svg19 :target: https://pypi.org/project/requests/2021.. image:: https://img.shields.io/pypi/pyversions/requests.svg22 :target: https://pypi.org/project/requests/23Update index.rstKenneth Reitzbefore adoption72ca1b7
line 24why, one step back24**Requests** is an elegant and simple HTTP library for Python, built for human beings.The library raises NoneType error when file-pointer (fp) resolves to None.Rajiv Mayanibefore adoption8546a15
lines 25–44why, one step back2526-------------------2728**Behold, the power of Requests**::2930 >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))31 >>> r.status_code32 20033 >>> r.headers['content-type']34 'application/json; charset=utf8'35 >>> r.encoding36 'utf-8'37 >>> r.text38 u'{"type":"User"...'39 >>> r.json()40 {u'private_gists': 419, u'total_private_repos': 77, ...}4142See `similar code, sans Requests <https://gist.github.com/973705>`_.4344Merge pull request #5171 from MFStapert/patch-2Nate Prewittbefore adoptione320f9e
line 45why, one step back45**Requests** allows you to send HTTP/1.1 requests extremely easily. Update index.rstKenneth Reitzbefore adoptione2fce5e
line 46why, one step back46There's no need to manually add query strings to yourThe library raises NoneType error when file-pointer (fp) resolves to None.Rajiv Mayanibefore adoption8546a15
lines 47–70why, one step back47URLs, or to form-encode your POST data. Keep-alive and HTTP connection pooling48are 100% automatic, thanks to `urllib3 <https://github.com/shazow/urllib3>`_.4950Beloved Features51----------------5253Requests is ready for today's web.5455- Keep-Alive & Connection Pooling56- International Domains and URLs57- Sessions with Cookie Persistence58- Browser-style SSL Verification59- Automatic Content Decoding60- Basic/Digest Authentication61- Elegant Key/Value Cookies62- Automatic Decompression63- Unicode Response Bodies64- HTTP(S) Proxy Support65- Multipart File Uploads66- Streaming Downloads67- Connection Timeouts68- Chunked Requests69- ``.netrc`` Support70Merge pull request #4672 from requests/remove_2.6_refsNate Prewittbefore adoptiond1aeb7e
line 71why, one step back71Requests officially supports Python 2.7 & 3.4–3.7, and runs great on PyPy.The library raises NoneType error when file-pointer (fp) resolves to None.Rajiv Mayanibefore adoption8546a15
lines 72–136why, one step back727374The User Guide75--------------7677This part of the documentation, which is mostly prose, begins with some78background information about Requests, then focuses on step-by-step79instructions for getting the most out of Requests.8081.. toctree::82 :maxdepth: 28384 user/intro85 user/install86 user/quickstart87 user/advanced88 user/authentication899091The Community Guide92-------------------9394This part of the documentation, which is mostly prose, details the95Requests ecosystem and community.9697.. toctree::98 :maxdepth: 299100 community/sponsors101 community/recommended102 community/faq103 community/out-there104 community/support105 community/vulnerabilities106 community/updates107 community/release-process108109The API Documentation / Guide110-----------------------------111112If you are looking for information on a specific function, class, or method,113this part of the documentation is for you.114115.. toctree::116 :maxdepth: 2117118 api119120121The Contributor Guide122---------------------123124If you want to contribute to the project, this part of the documentation is for125you.126127.. toctree::128 :maxdepth: 3129130 dev/contributing131 dev/philosophy132 dev/todo133 dev/authors134135There are no more guides. You are now guideless.136Good luck.