index.rst
This file
Path
docs/index.rst
140 lines · 3.4 KiB
Last changed by
Merge pull request #6642 from nateprewitt/drop_python_37Nate Prewittbefore adoption7a13c04
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 Humans™7==========================89Release v\ |version|. (:ref:`Installation <install>`)101112.. image:: https://static.pepy.tech/badge/requests/month13 :target: https://pepy.tech/project/requests14 :alt: Requests Downloads Per Month Badge15 16.. image:: https://img.shields.io/pypi/l/requests.svg17 :target: https://pypi.org/project/requests/18 :alt: License Badge1920.. image:: https://img.shields.io/pypi/wheel/requests.svg21 :target: https://pypi.org/project/requests/22 :alt: Wheel Support Badge2324.. image:: https://img.shields.io/pypi/pyversions/requests.svg25 :target: https://pypi.org/project/requests/26 :alt: Python Version Support Badge2728**Requests** is an elegant and simple HTTP library for Python, built for human beings.2930-------------------3132**Behold, the power of Requests**::3334 >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))35 >>> r.status_code36 20037 >>> r.headers['content-type']38 'application/json; charset=utf8'39 >>> r.encoding40 'utf-8'41 >>> r.text42 '{"type":"User"...'43 >>> r.json()44 {'private_gists': 419, 'total_private_repos': 77, ...}4546See `similar code, sans Requests <https://gist.github.com/973705>`_.474849**Requests** allows you to send HTTP/1.1 requests extremely easily. 50There's no need to manually add query strings to your51URLs, or to form-encode your POST data. Keep-alive and HTTP connection pooling52are 100% automatic, thanks to `urllib3 <https://github.com/urllib3/urllib3>`_.5354Beloved Features55----------------5657Requests is ready for today's web.5859- Keep-Alive & Connection Pooling60- International Domains and URLs61- Sessions with Cookie Persistence62- Browser-style SSL Verification63- Automatic Content Decoding64- Basic/Digest Authentication65- Elegant Key/Value Cookies66- Automatic Decompression67- Unicode Response Bodies68- HTTP(S) Proxy Support69- Multipart File Uploads70- Streaming Downloads71- Connection Timeouts72- Chunked Requests73- ``.netrc`` Support7475Requests officially supports Python 3.8+, and runs great on PyPy.767778The User Guide79--------------8081This part of the documentation, which is mostly prose, begins with some82background information about Requests, then focuses on step-by-step83instructions for getting the most out of Requests.8485.. toctree::86 :maxdepth: 28788 user/install89 user/quickstart90 user/advanced91 user/authentication929394The Community Guide95-------------------9697This part of the documentation, which is mostly prose, details the98Requests ecosystem and community.99100.. toctree::101 :maxdepth: 2102103 community/recommended104 community/faq105 community/out-there106 community/support107 community/vulnerabilities108 community/release-process109110.. toctree::111 :maxdepth: 1112113 community/updates114115The API Documentation / Guide116-----------------------------117118If you are looking for information on a specific function, class, or method,119this part of the documentation is for you.120121.. toctree::122 :maxdepth: 2123124 api125126127The Contributor Guide128---------------------129130If you want to contribute to the project, this part of the documentation is for131you.132133.. toctree::134 :maxdepth: 3135136 dev/contributing137 dev/authors138139There are no more guides. You are now guideless.140Good luck.