Debian Codegraph @

docs/index.rst

raw
1 urllib3
2 =======
3
4 .. toctree::
5 :hidden:
6 :maxdepth: 3
7
8 For Enterprise <https://tidelift.com/subscription/pkg/pypi-urllib3?utm_source=pypi-urllib3&utm_medium=referral&utm_campaign=docs>
9 Community Discord <https://discord.gg/urllib3>
10 sponsors
11 user-guide
12 advanced-usage
13 reference/index
14 contributing
15 security
16 changelog
17 v2-migration-guide
18
19 urllib3 is a powerful, *user-friendly* HTTP client for Python.
20 :ref:`Much of the Python ecosystem already uses <who-uses>` urllib3 and you should too.
21
22 urllib3 brings many critical features that are missing from the Python
23 standard libraries:
24
25 - Thread safety.
26 - Connection pooling.
27 - Client-side TLS/SSL verification.
28 - File uploads with multipart encoding.
29 - Helpers for retrying requests and dealing with HTTP redirects.
30 - Support for gzip, deflate, brotli, and zstd encoding.
31 - Proxy support for HTTP and SOCKS.
32 - 100% test coverage.
33
34 urllib3 is powerful and easy to use:
35
36 .. code-block:: pycon
37
38 >>> import urllib3
39 >>> resp = urllib3.request("GET", "https://httpbin.org/robots.txt")
40 >>> resp.status
41 200
42 >>> resp.data
43 b"User-agent: *\nDisallow: /deny\n"
44
45 For Enterprise
46 --------------
47
48 .. |tideliftlogo| image:: https://nedbatchelder.com/pix/Tidelift_Logos_RGB_Tidelift_Shorthand_On-White_small.png
49 :width: 75
50 :alt: Tidelift
51
52 .. list-table::
53 :widths: 10 100
54
55 * - |tideliftlogo|_
56 - Professional support for urllib3 is available as part of the `Tidelift
57 Subscription`_. Tidelift gives software development teams a single source for
58 purchasing and maintaining their software, with professional grade assurances
59 from the experts who know it best, while seamlessly integrating with existing
60 tools.
61
62 .. _Tidelift Subscription: https://tidelift.com/subscription/pkg/pypi-urllib3?utm_source=pypi-urllib3&utm_medium=referral&utm_campaign=docs
63 .. _tideliftlogo: https://tidelift.com/subscription/pkg/pypi-urllib3?utm_source=pypi-urllib3&utm_medium=referral&utm_campaign=docs
64
65 |learn-more|_ |request-a-demo|_
66
67 .. |learn-more| image:: https://raw.githubusercontent.com/urllib3/urllib3/master/docs/images/learn-more-button.png
68 :width: 49%
69 :alt: Learn more about Tidelift Subscription
70 .. _learn-more: https://tidelift.com/subscription/pkg/pypi-urllib3?utm_source=pypi-urllib3&utm_medium=referral&utm_campaign=docs
71
72 .. |request-a-demo| image:: https://raw.githubusercontent.com/urllib3/urllib3/master/docs/images/demo-button.png
73 :width: 49%
74 :alt: Request a Demo for the Tidelift Subscription
75 .. _request-a-demo: https://tidelift.com/subscription/request-a-demo?utm_source=pypi-urllib3&utm_medium=referral&utm_campaign=docs
76
77 Installing
78 ----------
79
80 urllib3 can be installed with `pip <https://pip.pypa.io>`_
81
82 .. code-block:: bash
83
84 $ python -m pip install urllib3
85
86 Alternatively, you can grab the latest source code from `GitHub <https://github.com/urllib3/urllib3>`_:
87
88 .. code-block:: bash
89
90 $ git clone https://github.com/urllib3/urllib3.git
91 $ cd urllib3
92 $ pip install .
93
94 Usage
95 -----
96
97 The :doc:`user-guide` is the place to go to learn how to use the library and
98 accomplish common tasks. The more in-depth :doc:`advanced-usage` guide is the place to go for lower-level tweaking.
99
100 The :doc:`reference/index` documentation provides API-level documentation.
101
102 .. _who-uses:
103
104 Who uses urllib3?
105 -----------------
106
107 `urllib3 is one of the most downloaded packages on PyPI <https://pypistats.org/top>`_
108 and is a dependency of many popular Python packages like `Requests <https://requests.readthedocs.io>`_,
109 `Pip <https://pip.pypa.io>`_, and more!
110
111 License
112 -------
113
114 urllib3 is made available under the MIT License. For more details, see `LICENSE.txt <https://github.com/urllib3/urllib3/blob/master/LICENSE.txt>`_.
115
116 Contributing
117 ------------
118
119 We happily welcome contributions, please see :doc:`contributing` for details.