Debian Codegraph @

docs/index.rst

raw ◀ ▶
1 Debian patch touch this file
1 .. Requests documentation master file, created by
2 sphinx-quickstart on Sun Feb 13 23:54:25 2011.
3 You can adapt this file completely to your liking, but it should at least
4 contain the root `toctree` directive.
5
6 Requests: HTTP for Humans™
7 ==========================
8
9 Release v\ |version|. (:ref:`Installation <install>`)
10
11 **Requests** is an elegant and simple HTTP library for Python, built for human beings.
12
13 -------------------
14
15 **Behold, the power of Requests**::
16
17 >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))
18 >>> r.status_code
19 200
20 >>> r.headers['content-type']
21 'application/json; charset=utf8'
22 >>> r.encoding
23 'utf-8'
24 >>> r.text
25 '{"type":"User"...'
26 >>> r.json()
27 {'private_gists': 419, 'total_private_repos': 77, ...}
28
29 See `similar code, sans Requests <https://gist.github.com/973705>`_.
30
31
32 **Requests** allows you to send HTTP/1.1 requests extremely easily.
33 There's no need to manually add query strings to your
34 URLs, or to form-encode your POST data. Keep-alive and HTTP connection pooling
35 are 100% automatic, thanks to `urllib3 <https://github.com/urllib3/urllib3>`_.
36
37 Beloved Features
38 ----------------
39
40 Requests is ready for today's web.
41
42 - Keep-Alive & Connection Pooling
43 - International Domains and URLs
44 - Sessions with Cookie Persistence
45 - Browser-style SSL Verification
46 - Automatic Content Decoding
47 - Basic/Digest Authentication
48 - Elegant Key/Value Cookies
49 - Automatic Decompression
50 - Unicode Response Bodies
51 - HTTP(S) Proxy Support
52 - Multipart File Uploads
53 - Streaming Downloads
54 - Connection Timeouts
55 - Chunked Requests
56 - ``.netrc`` Support
57
58 Requests officially supports Python 3.10+, and runs great on PyPy.
59
60
61 The User Guide
62 --------------
63
64 This part of the documentation, which is mostly prose, begins with some
65 background information about Requests, then focuses on step-by-step
66 instructions for getting the most out of Requests.
67
68 .. toctree::
69 :maxdepth: 2
70
71 user/install
72 user/quickstart
73 user/advanced
74 user/authentication
75
76
77 The Community Guide
78 -------------------
79
80 This part of the documentation, which is mostly prose, details the
81 Requests ecosystem and community.
82
83 .. toctree::
84 :maxdepth: 2
85
86 community/recommended
87 community/faq
88 community/out-there
89 community/support
90 community/vulnerabilities
91 community/release-process
92
93 .. toctree::
94 :maxdepth: 1
95
96 community/updates
97
98 The API Documentation / Guide
99 -----------------------------
100
101 If you are looking for information on a specific function, class, or method,
102 this part of the documentation is for you.
103
104 .. toctree::
105 :maxdepth: 2
106
107 api
108
109
110 The Contributor Guide
111 ---------------------
112
113 If you want to contribute to the project, this part of the documentation is for
114 you.
115
116 .. toctree::
117 :maxdepth: 3
118
119 dev/contributing
120 dev/authors
121
122 There are no more guides. You are now guideless.
123 Good luck.