Skip to content
Myr

index.rst

This file

Path

docs/index.rst

144 lines · 3.5 KiB

Last changed by

Update index.rst to match README info (#7386)Nate Prewittbefore adoption93bf533

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://img.shields.io/pypi/v/requests.svg?maxAge=8640013    :target: https://pypi.org/project/requests/14    :alt: PyPI Version Badge1516.. image:: https://img.shields.io/pypi/pyversions/requests.svg17    :target: https://pypi.org/project/requests/18    :alt: Supported Versions Badge1920.. image:: https://static.pepy.tech/badge/requests/month21    :target: https://pepy.tech/project/requests22    :alt: Downloads Per Month Badge2324.. image:: https://img.shields.io/github/contributors/psf/requests.svg25    :target: https://github.com/psf/requests/graphs/contributors26    :alt: Contributors Badge2728.. image:: https://readthedocs.org/projects/requests/badge/?version=latest29    :target: https://requests.readthedocs.io30    :alt: Documentation Badge3132**Requests** is an elegant and simple HTTP library for Python, built for human beings.3334-------------------3536**Behold, the power of Requests**::3738    >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))39    >>> r.status_code40    20041    >>> r.headers['content-type']42    'application/json; charset=utf8'43    >>> r.encoding44    'utf-8'45    >>> r.text46    '{"type":"User"...'47    >>> r.json()48    {'private_gists': 419, 'total_private_repos': 77, ...}4950See `similar code, sans Requests <https://gist.github.com/973705>`_.515253**Requests** allows you to send HTTP/1.1 requests extremely easily. 54There's no need to manually add query strings to your55URLs, or to form-encode your POST data. Keep-alive and HTTP connection pooling56are 100% automatic, thanks to `urllib3 <https://github.com/urllib3/urllib3>`_.5758Beloved Features59----------------6061Requests is ready for today's web.6263- Keep-Alive & Connection Pooling64- International Domains and URLs65- Sessions with Cookie Persistence66- Browser-style SSL Verification67- Automatic Content Decoding68- Basic/Digest Authentication69- Elegant Key/Value Cookies70- Automatic Decompression71- Unicode Response Bodies72- HTTP(S) Proxy Support73- Multipart File Uploads74- Streaming Downloads75- Connection Timeouts76- Chunked Requests77- ``.netrc`` Support7879Requests officially supports Python 3.10+, and runs great on PyPy.808182The User Guide83--------------8485This part of the documentation, which is mostly prose, begins with some86background information about Requests, then focuses on step-by-step87instructions for getting the most out of Requests.8889.. toctree::90   :maxdepth: 29192   user/install93   user/quickstart94   user/advanced95   user/authentication969798The Community Guide99-------------------100101This part of the documentation, which is mostly prose, details the102Requests ecosystem and community.103104.. toctree::105   :maxdepth: 2106107   community/recommended108   community/faq109   community/out-there110   community/support111   community/vulnerabilities112   community/release-process113114.. toctree::115   :maxdepth: 1116117   community/updates118119The API Documentation / Guide120-----------------------------121122If you are looking for information on a specific function, class, or method,123this part of the documentation is for you.124125.. toctree::126   :maxdepth: 2127128   api129130131The Contributor Guide132---------------------133134If you want to contribute to the project, this part of the documentation is for135you.136137.. toctree::138   :maxdepth: 3139140   dev/contributing141   dev/authors142143There are no more guides. You are now guideless.144Good luck.