Skip to content
Myr

index.rst

This file

Path

docs/index.rst

136 lines · 3.3 KiB

Last changed by

Update index.rstKenneth Reitzbefore adoption3d968ff

History of this file

Take 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 Humans™7==========================89Release v\ |version|. (:ref:`Installation <install>`)101112.. image:: https://pepy.tech/badge/requests13    :target: https://pepy.tech/project/requests14    15.. 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/2324**Requests** is an elegant and simple HTTP library for Python, built for human beings.2526-------------------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>`_.434445**Requests** allows you to send HTTP/1.1 requests extremely easily. 46There's no need to manually add query strings to your47URLs, 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`` Support7071Requests officially supports Python 2.7 & 3.4–3.7, and runs great on PyPy.727374The 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.