requests v2.26.0 Release Notes

Release Date: 2021-07-13 // 3 months ago
  • ๐Ÿ‘Œ Improvements

    • ๐Ÿ‘ Requests now supports Brotli compression, if either the brotli or brotlicffi package is installed. (#5783)

    • ๐Ÿ”ง Session.send now correctly resolves proxy configurations from both the Session and Request. Behavior now matches Session.request. (#5681)

    ๐Ÿ›  Bugfixes

    • ๐Ÿ›  Fixed a race condition in zip extraction when using Requests in parallel from zip archive. (#5707)

    Dependencies

    • Instead of chardet, use the MIT-licensed charset_normalizer for Python3 to remove license ambiguity for projects bundling requests. If chardet is already installed on your machine it will be used instead of charset_normalizer to keep backwards compatibility. (#5797)

    You can also install chardet while installing requests by specifying [use_chardet_on_py3] extra as follows:

    ```shell
    pip install "requests[use_chardet_on_py3]"
    ```
    

    Python2 still depends upon the chardet module.

    • ๐Ÿ‘ Requests now supports idna 3.x on Python 3. idna 2.x will continue to be used on Python 2 installations. (#5711)

    ๐Ÿ—„ Deprecations

    • ๐Ÿ”’ The requests[security] extra has been converted to a no-op install. PyOpenSSL is no longer the recommended secure option for Requests. (#5867)

    • ๐Ÿ‘ Requests has officially dropped support for Python 3.5. (#5867)


Previous changes from v2.25.1

  • ๐Ÿ›  Bugfixes

    • 0๏ธโƒฃ Requests now treats application/json as utf8 by default. Resolving inconsistencies between r.text and r.json output. (#5673)

    Dependencies

    • ๐Ÿ‘ Requests now supports chardet v4.x.