./www/py-urllib3, HTTP library with thread-safe connection pooling

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2.3.0, Package name: py312-urllib3-2.3.0, Maintainer: imil

HTTP library with thread-safe connection pooling, file post, and more.

Highlights

* Re-use the same socket connection for multiple requests (HTTPConnectionPool
and HTTPSConnectionPool) (with optional client-side certificate
verification).
* File posting (encode_multipart_formdata).
* Built-in redirection and retries (optional).
* Supports gzip and deflate decoding.
* Thread-safe and sanity-safe.
* Works with AppEngine, gevent, and eventlib.
* Tested on Python 2.6+ and Python 3.2+, 100% unit test coverage.
* Small and easy to understand codebase perfect for extending and building
upon. For a more comprehensive solution, have a look at Requests which is
also powered by urllib3.


Required to run:
[security/py-OpenSSL] [devel/py-setuptools] [security/py-cryptography] [www/py-idna] [security/py-certifi] [net/py-Socks] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Package options: brotli, zstd

Master sites:

Filesize: 300.066 KB

Version history: (Expand)


CVS history: (Expand)


   2024-12-29 22:03:41 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
py-urllib3: update to 2.3.0.

2.3.0 (2024-12-22)
==================

Features
--------

- Added ``HTTPResponse.shutdown()`` to stop any ongoing or future reads for a \ 
specific response. It calls ``shutdown(SHUT_RD)`` on the underlying socket. This \ 
feature was `sponsored by LaunchDarkly \ 
<https://opencollective.com/urllib3/contributions/815307>`__.
- Added support for JavaScript Promise Integration on Emscripten. This enables \ 
more efficient WebAssembly
  requests and streaming, and makes it possible to use in Node.js if you launch \ 
it as  ``node --experimental-wasm-stack-switching``.
- Added the ``proxy_is_tunneling`` property to ``HTTPConnection`` and \ 
``HTTPSConnection``.
- Added pickling support to ``NewConnectionError`` and ``NameResolutionError``.

Bugfixes
--------

- Fixed an issue in debug logs where the HTTP version was rendering as \ 
"HTTP/11" instead of "HTTP/1.1".

Deprecations and Removals
-------------------------

- Removed support for Python 3.8.
   2024-09-17 19:21:37 by John Klos | Files touched by this commit (1)
Log message:
Fixed typo (superfluous quote).
   2024-09-12 21:38:22 by Adam Ciarcinski | Files touched by this commit (4) | Package updated
Log message:
py-urllib3: updated to 2.2.3

2.2.3 (2024-09-12)
==================

Features
--------

- Added support for Python 3.13.

Bugfixes
--------

- Fixed the default encoding of chunked request bodies to be UTF-8 instead of \ 
ISO-8859-1.
  All other methods of supplying a request body already use UTF-8 starting in \ 
urllib3 v2.0.
- Fixed ResourceWarning on CONNECT with Python < 3.11.4 by backporting \ 
https://github.com/python/cpython/issues/103472.
- Adjust tolerance for floating-point comparison on Windows to avoid flakiness in CI
- Fixed a crash where certain standard library hash functions were absent in \ 
restricted environments.
- Fixed mypy error when adding to ``HTTPConnection.default_socket_options``.

HTTP/2 (experimental)
---------------------

HTTP/2 support is still in early development.

- Excluded Transfer-Encoding: chunked from HTTP/2 request body
- Added version checking for ``h2`` (https://pypi.org/project/h2/) usage.

  Now only accepting supported h2 major version 4.x.x.
- Added a probing mechanism for determining whether a given target origin
  supports HTTP/2 via ALPN.
- Add support for sending a request body with HTTP/2

Deprecations and Removals
-------------------------

- Note for downstream distributors: the ``_version.py`` file has been removed \ 
and is now created at build time by hatch-vcs.
- Drop support for end-of-life PyPy3.8 and PyPy3.9.
   2024-08-15 23:55:19 by Thomas Klausner | Files touched by this commit (6)
Log message:
*: remove Python 3.9 specific dependencies

in a quest to fix pbulk
   2024-06-17 17:26:36 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-urllib3: updated to 2.2.2

2.2.2 (2024-06-17)

- Added the ``Proxy-Authorization`` header to the list of headers to strip from \ 
requests when redirecting to a different host. As before, different headers can \ 
be set via ``Retry.remove_headers_on_redirect``.
- Allowed passing negative integers as ``amt`` to read methods of \ 
``http.client.HTTPResponse`` as an alternative to ``None``.
- Fixed return types representing copying actions to use ``typing.Self``.
   2024-05-10 12:44:25 by Thomas Klausner | Files touched by this commit (1)
Log message:
py-urllib3: set python incompatible versions before including bsd.options.mk
   2024-03-19 11:58:01 by Nia Alarie | Files touched by this commit (2)
Log message:
py-urllib3: Make optional dependencies actually optional.
   2024-02-18 09:24:12 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-urllib3: updated to 2.2.1

2.2.1 (2024-02-16)

- Fixed issue where ``InsecureRequestWarning`` was emitted for HTTPS connections \ 
when using Emscripten.
- Fixed ``HTTPConnectionPool.urlopen`` to stop automatically casting non-proxy \ 
headers to ``HTTPHeaderDict``. This change was premature as it did not apply to \ 
proxy headers and ``HTTPHeaderDict`` does not handle byte header values \ 
correctly yet.
- Changed ``ProtocolError`` to ``InvalidChunkLength`` when response terminates \ 
before the chunk length is sent.
- Changed ``ProtocolError`` to be more verbose on incomplete reads with excess \ 
content.