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 welcomes contributions. Please read our
81 [contributing documentation](https://urllib3.readthedocs.io/en/latest/contributing.html)
82 before starting work.
83
84 Check for existing pull requests addressing the same issue, and share feedback
85 and suggestions in the existing pull request and issue. Duplicate pull
86 requests, including alternative solutions, will be rejected without review
87 unless a maintainer has approved opening an alternative pull request in
88 advance.
89
90
91 ## Security Disclosures
92
93 To report a security vulnerability, please use the
94 [Tidelift security contact](https://tidelift.com/security).
95 Tidelift will coordinate the fix and disclosure with maintainers.
96
97 See the repository
98 [Security Policy](https://urllib3.readthedocs.io/en/latest/security.html)
99 for more details.
100
101
102 ## Maintainers
103
104 Meet our maintainers since 2008:
105
106 - Current Lead: [@illia-v](https://github.com/illia-v) (Illia Volochii)
107 - [@sethmlarson](https://github.com/sethmlarson) (Seth M. Larson)
108 - [@pquentin](https://github.com/pquentin) (Quentin Pradet)
109 - [@theacodes](https://github.com/theacodes) (Thea Flowers)
110 - [@haikuginger](https://github.com/haikuginger) (Jess Shapiro)
111 - [@lukasa](https://github.com/lukasa) (Cory Benfield)
112 - [@sigmavirus24](https://github.com/sigmavirus24) (Ian Stapleton Cordasco)
113 - [@shazow](https://github.com/shazow) (Andrey Petrov)
114
115 👋
116
117
118 ## Sponsorship
119
120 If your company benefits from this library, please consider [sponsoring its
121 development](https://urllib3.readthedocs.io/en/latest/sponsors.html).
122
123
124 ## For Enterprise
125
126 Professional support for urllib3 is available as part of the [Tidelift
127 Subscription][1]. Tidelift gives software development teams a single source for
128 purchasing and maintaining their software, with professional grade assurances
129 from the experts who know it best, while seamlessly integrating with existing
130 tools.
131
132 [1]: https://tidelift.com/subscription/pkg/pypi-urllib3?utm_source=pypi-urllib3&utm_medium=referral&utm_campaign=readme