HTTP library with thread-safe connection pooling, file post, and more.
urllib3 is a powerful, sanity-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:
urllib3 is powerful and easy to use:
>>> import urllib3 >>> http = urllib3.PoolManager() >>> r = http.request('GET', 'http://httpbin.org/robots.txt') >>> r.status 200 >>> r.data 'User-agent: *\nDisallow: /deny\n'
urllib3 can be installed with pip:
$ pip install urllib3
Alternatively, you can grab the latest source code from GitHub:
$ git clone git://github.com/shazow/urllib3.git $ python setup.py install
urllib3 has usage and reference documentation at urllib3.readthedocs.io.
urllib3 happily accepts contributions. Please see our contributing documentation for some tips on getting started.
If your company benefits from this library, please consider sponsoring its development.
CVE-2016-9015. Users who are using urllib3 version 1.17 or 1.18 along with PyOpenSSL injection and OpenSSL 1.1.0 must upgrade to this version. This release fixes a vulnerability whereby urllib3 in the above configuration would silently fail to validate TLS certificates due to erroneously setting invalid flags in OpenSSL’s SSL_CTX_set_verify function. These erroneous flags do not cause a problem in OpenSSL versions before 1.1.0, which interprets the presence of any flag as requesting certificate validation.
There is no PR for this patch, as it was prepared for simultaneous disclosure and release. The master branch received the same fix in PR #1010.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|urllib3-1.22-py2.py3-none-any.whl (132.3 kB) Copy SHA256 Checksum SHA256||py2.py3||Wheel||Jul 20, 2017|
|urllib3-1.22.tar.gz (226.1 kB) Copy SHA256 Checksum SHA256||–||Source||Jul 20, 2017|