<h1 align="center">
![urllib3](https://github.com/urllib3/urllib3/raw/main/docs/_static/banner_github.svg)
</h1>
<p align="center">
<a href="https://pypi.org/project/urllib3"><img alt="PyPI Version" src="https://img.shields.io/pypi/v/urllib3.svg?maxAge=86400" /></a>
<a href="https://pypi.org/project/urllib3"><img alt="Python Versions" src="https://img.shields.io/pypi/pyversions/urllib3.svg?maxAge=86400" /></a>
<a href="https://discord.gg/urllib3"><img alt="Join our Discord" src="https://img.shields.io/discord/756342717725933608?color=%237289da&label=discord" /></a>
<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>
<a href="https://github.com/urllib3/urllib3/actions?query=workflow%3ACI"><img alt="Build Status on GitHub" src="https://github.com/urllib3/urllib3/workflows/CI/badge.svg" /></a>
<a href="https://urllib3.readthedocs.io"><img alt="Documentation Status" src="https://readthedocs.org/projects/urllib3/badge/?version=latest" /></a><br>
<a href="https://deps.dev/pypi/urllib3"><img alt="OpenSSF Scorecard" src="https://api.securityscorecards.dev/projects/github.com/urllib3/urllib3/badge" /></a>
<a href="https://slsa.dev"><img alt="SLSA 3" src="https://slsa.dev/images/gh-badge-level3.svg" /></a>
<a href="https://bestpractices.coreinfrastructure.org/projects/6227"><img alt="CII Best Practices" src="https://bestpractices.coreinfrastructure.org/projects/6227/badge" /></a>
</p>
urllib3 is a powerful, *user-friendly* HTTP client for Python. Much of the
Python ecosystem already uses urllib3 and you should too.
urllib3 brings many critical features that are missing from the Python
standard libraries:
- Thread safety.
- Connection pooling.
- Client-side SSL/TLS verification.
- File uploads with multipart encoding.
- Helpers for retrying requests and dealing with HTTP redirects.
- Support for gzip, deflate, brotli, and zstd encoding.
- Proxy support for HTTP and SOCKS.
- 100% test coverage.
urllib3 is powerful and easy to use:
```python3
>>> import urllib3
>>> resp = urllib3.request("GET", "http://httpbin.org/robots.txt")
>>> resp.status
200
>>> resp.data
b"User-agent: *\nDisallow: /deny\n"
```
## Installing
urllib3 can be installed with [pip](https://pip.pypa.io):
```bash
$ python -m pip install urllib3
```
Alternatively, you can grab the latest source code from [GitHub](https://github.com/urllib3/urllib3):
```bash
$ git clone https://github.com/urllib3/urllib3.git
$ cd urllib3
$ pip install .
```
## Documentation
urllib3 has usage and reference documentation at [urllib3.readthedocs.io](https://urllib3.readthedocs.io).
## Community
urllib3 has a [community Discord channel](https://discord.gg/urllib3) for asking questions and
collaborating with other contributors. Drop by and say hello ð
## Contributing
urllib3 happily accepts contributions. Please see our
[contributing documentation](https://urllib3.readthedocs.io/en/latest/contributing.html)
for some tips on getting started.
## Security Disclosures
To report a security vulnerability, please use the
[Tidelift security contact](https://tidelift.com/security).
Tidelift will coordinate the fix and disclosure with maintainers.
## Maintainers
- [@sethmlarson](https://github.com/sethmlarson) (Seth M. Larson)
- [@pquentin](https://github.com/pquentin) (Quentin Pradet)
- [@illia-v](https://github.com/illia-v) (Illia Volochii)
- [@theacodes](https://github.com/theacodes) (Thea Flowers)
- [@haikuginger](https://github.com/haikuginger) (Jess Shapiro)
- [@lukasa](https://github.com/lukasa) (Cory Benfield)
- [@sigmavirus24](https://github.com/sigmavirus24) (Ian Stapleton Cordasco)
- [@shazow](https://github.com/shazow) (Andrey Petrov)
ð
## Sponsorship
If your company benefits from this library, please consider [sponsoring its
development](https://urllib3.readthedocs.io/en/latest/sponsors.html).
## For Enterprise
Professional support for urllib3 is available as part of the [Tidelift
Subscription][1]. Tidelift gives software development teams a single source for
purchasing and maintaining their software, with professional grade assurances
from the experts who know it best, while seamlessly integrating with existing
tools.
[1]: https://tidelift.com/subscription/pkg/pypi-urllib3?utm_source=pypi-urllib3&utm_medium=referral&utm_campaign=readme
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
urllib3-2.2.0.tar.gz (124个子文件)
make.bat 4KB
server.crt 1KB
.gitignore 85B
emscripten_fetch_worker.js 4KB
cacert.key 2KB
server.key 2KB
Makefile 4KB
README.md 4KB
cacert.pem 1KB
duplicate_san.pem 1KB
PKG-INFO 6KB
demo-button.png 8KB
learn-more-button.png 6KB
logo.png 2KB
favicon.png 714B
test_socketlevel.py 86KB
test_connectionpool.py 55KB
test_response.py 54KB
test_https.py 43KB
test_util.py 43KB
connectionpool.py 42KB
response.py 42KB
test_proxy_poolmanager.py 37KB
test_emscripten.py 35KB
connection.py 34KB
test_socks.py 25KB
test_poolmanager.py 24KB
poolmanager.py 22KB
test_connectionpool.py 22KB
test_ssltransport.py 20KB
pyopenssl.py 19KB
ssl_.py 19KB
test_poolmanager.py 18KB
retry.py 18KB
_collections.py 17KB
test_retry.py 16KB
url.py 15KB
test_collections.py 14KB
fetch.py 14KB
app.py 13KB
test_connection.py 12KB
conftest.py 12KB
testcase.py 11KB
fields.py 11KB
test_chunked_transfer.py 10KB
timeout.py 10KB
__init__.py 10KB
_request_methods.py 10KB
response.py 9KB
exceptions.py 9KB
ssltransport.py 9KB
connection.py 8KB
request.py 8KB
test_ssl.py 8KB
http2.py 7KB
socks.py 7KB
__init__.py 7KB
conftest.py 6KB
port_helpers.py 6KB
test_wait.py 6KB
ssl_match_hostname.py 6KB
_base_connection.py 6KB
socketserver.py 5KB
test_connection.py 4KB
connection.py 4KB
test_fields.py 4KB
wait.py 4KB
conf.py 4KB
test_filepost.py 4KB
test_proxymanager.py 4KB
asgi_proxy.py 3KB
response.py 3KB
test_pyopenssl.py 3KB
filepost.py 2KB
hypercornserver.py 2KB
test_exceptions.py 2KB
test_pyopenssl_dependencies.py 2KB
tz_stub.py 1KB
proxy.py 1KB
util.py 1KB
test_no_ssl.py 1KB
__init__.py 1001B
test_no_ssl.py 978B
test_queue_monkeypatch.py 761B
__init__.py 733B
test_compatibility.py 692B
request.py 566B
_version.py 98B
__init__.py 0B
__init__.py 0B
__init__.py 0B
__init__.py 0B
__init__.py 0B
CHANGES.rst 62KB
advanced-usage.rst 21KB
v2-migration-guide.rst 17KB
user-guide.rst 16KB
contributing.rst 9KB
index.rst 4KB
emscripten.rst 4KB
共 124 条
- 1
- 2
资源评论
假技术po主
- 粉丝: 517
- 资源: 4308
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功