Debian Codegraph @

README.md

raw
1 <h1 align="center">
2
3 ![urllib3](https://github.com/urllib3/urllib3/raw/main/docs/_static/banner_github.svg)
4
5 </h1>
6
7 <p align="center">
8 <a href="https://pypi.org/project/urllib3"><img alt="PyPI Version" src="https://img.shields.io/pypi/v/urllib3.svg?maxAge=86400" /></a>
9 <a href="https://pypi.org/project/urllib3"><img alt="Python Versions" src="https://img.shields.io/pypi/pyversions/urllib3.svg?maxAge=86400" /></a>
10 <a href="https://discord.gg/urllib3"><img alt="Join our Discord" src="https://img.shields.io/discord/756342717725933608?color=%237289da&label=discord" /></a>
11 <a href="https://github.com/urllib3/urllib3/actions?query=workflow%3ACI"><img alt="Coverage Status" src="https://img.shields.io/badge/coverage-100%25-success" /></a>
12 <a href="https://github.com/urllib3/urllib3/actions/workflows/ci.yml?query=branch%3Amain"><img alt="Build Status on GitHub" src="https://github.com/urllib3/urllib3/actions/workflows/ci.yml/badge.svg?branch:main&workflow:CI" /></a>
13 <a href="https://urllib3.readthedocs.io"><img alt="Documentation Status" src="https://readthedocs.org/projects/urllib3/badge/?version=latest" /></a><br>
14 <a href="https://deps.dev/pypi/urllib3"><img alt="OpenSSF Scorecard" src="https://api.securityscorecards.dev/projects/github.com/urllib3/urllib3/badge" /></a>
15 <a href="https://slsa.dev"><img alt="SLSA 3" src="https://slsa.dev/images/gh-badge-level3.svg" /></a>
16 <a href="https://bestpractices.coreinfrastructure.org/projects/6227"><img alt="CII Best Practices" src="https://bestpractices.coreinfrastructure.org/projects/6227/badge" /></a>
17 </p>
18
19 urllib3 is a powerful, *user-friendly* HTTP client for Python.
20 urllib3 brings many critical features that are missing from the Python
21 standard libraries:
22
23 - Thread safety.
24 - Connection pooling.
25 - Client-side SSL/TLS verification.
26 - File uploads with multipart encoding.
27 - Helpers for retrying requests and dealing with HTTP redirects.
28 - Support for gzip, deflate, brotli, and zstd encoding.
29 - Proxy support for HTTP and SOCKS.
30 - 100% test coverage.
31
32 ... and many more features, but most importantly: Our maintainers have a 15+
33 year track record of maintaining urllib3 with the highest code standards and
34 attention to security and safety.
35
36 [Much of the Python ecosystem already uses urllib3](https://urllib3.readthedocs.io/en/stable/#who-uses)
37 and you should too.
38
39
40 ## Installing
41
42 urllib3 can be installed with [pip](https://pip.pypa.io):
43
44 ```bash
45 $ python -m pip install urllib3
46 ```
47
48 Alternatively, you can grab the latest source code from [GitHub](https://github.com/urllib3/urllib3):
49
50 ```bash
51 $ git clone https://github.com/urllib3/urllib3.git
52 $ cd urllib3
53 $ pip install .
54 ```
55
56 ## Getting Started
57
58 urllib3 is easy to use:
59
60 ```python3
61 >>> import urllib3
62 >>> resp = urllib3.request("GET", "http://httpbin.org/robots.txt")
63 >>> resp.status
64 200
65 >>> resp.data
66 b"User-agent: *\nDisallow: /deny\n"
67 ```
68
69 urllib3 has usage and reference documentation at [urllib3.readthedocs.io](https://urllib3.readthedocs.io).
70
71
72 ## Community
73
74 urllib3 has a [community Discord channel](https://discord.gg/urllib3) for asking questions and
75 collaborating with other contributors. Drop by and say hello 👋
76
77
78 ## Contributing
79
80 urllib3 happily accepts contributions. Please see our
81 [contributing documentation](https://urllib3.readthedocs.io/en/latest/contributing.html)
82 for some tips on getting started.
83
84
85 ## Security Disclosures
86
87 To report a security vulnerability, please use the
88 [Tidelift security contact](https://tidelift.com/security).
89 Tidelift will coordinate the fix and disclosure with maintainers.
90
91
92 ## Maintainers
93
94 Meet our maintainers since 2008:
95
96 - Current Lead: [@illia-v](https://github.com/illia-v) (Illia Volochii)
97 - [@sethmlarson](https://github.com/sethmlarson) (Seth M. Larson)
98 - [@pquentin](https://github.com/pquentin) (Quentin Pradet)
99 - [@theacodes](https://github.com/theacodes) (Thea Flowers)
100 - [@haikuginger](https://github.com/haikuginger) (Jess Shapiro)
101 - [@lukasa](https://github.com/lukasa) (Cory Benfield)
102 - [@sigmavirus24](https://github.com/sigmavirus24) (Ian Stapleton Cordasco)
103 - [@shazow](https://github.com/shazow) (Andrey Petrov)
104
105 👋
106
107
108 ## Sponsorship
109
110 If your company benefits from this library, please consider [sponsoring its
111 development](https://urllib3.readthedocs.io/en/latest/sponsors.html).
112
113
114 ## For Enterprise
115
116 Professional support for urllib3 is available as part of the [Tidelift
117 Subscription][1]. Tidelift gives software development teams a single source for
118 purchasing and maintaining their software, with professional grade assurances
119 from the experts who know it best, while seamlessly integrating with existing
120 tools.
121
122 [1]: https://tidelift.com/subscription/pkg/pypi-urllib3?utm_source=pypi-urllib3&utm_medium=referral&utm_campaign=readme