Skip to content
Myr

Version 0.20 (#1890)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* Version 0.20 * Add date to changelog * Freeze charset-normalizer to a known version for testing consistency

authored by Tom Christie · committed by GitHub · parent deb1a2b · Browse files · 5 files+15 added−15 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

5 files+15 added−15 removed

  • other:+15 added−15 removed

5 files+15 added−15 removed

modified:docs/index.md+5 added-7 removed
modified:httpx/__version__.py+1 added-1 removed
1__title__ = "httpx"2__description__ = "A next generation HTTP client, for Python 3."3__version__ = "1.0.0.beta0"3__version__ = "0.20.0"
modified:CHANGELOG.md+2 added-2 removed
2 unmodified lines
3All notable changes to this project will be documented in this file.45The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).67## 1.0.0.beta07## 0.20.0 (13th October, 2021)89The 1.0 pre-release adds an integrated command-line client, and also includes some9The 0.20.0 release adds an integrated command-line client, and also includes some10design changes. The most notable of these is that redirect responses are no longer11automatically followed, unless specifically requested.1213This design decision prioritises a more explicit approach to redirects, in order
865 unmodified lines
modified:README.md+5 added-5 removed
15 unmodified lines
16HTTPX is a fully featured HTTP client library for Python 3. It includes **an integrated17command line client**, has support for both **HTTP/1.1 and HTTP/2**, and provides both **sync18and async APIs**.1920**Note**: *This is the README for the 1.0 pre-release. This release adds support for an integrated command-line client, and also includes a couple of design changes from 0.19. Redirects are no longer followed by default, and the low-level Transport API has been updated. Upgrades from 0.19 will need to see [the CHANGELOG](https://github.com/encode/httpx/blob/master/CHANGELOG.md) for more details.*20**Note**: *The 0.20 release adds support for an integrated command-line client, and also includes a couple of design changes from 0.19. Redirects are no longer followed by default, and the low-level Transport API has been updated. Upgrades from 0.19 will need to see [the CHANGELOG](https://github.com/encode/httpx/blob/master/CHANGELOG.md) for more details.*2122---2324Installing HTTPX.24Install HTTPX using pip:2526```shell27$ pip install httpx --pre27$ pip install httpx28```2930Now, let's get started...30Now, let's get started:3132```pycon33>>> import httpx34>>> r = httpx.get('https://www.example.org/')
9 unmodified lines
4445Or, using the command-line client.4647```shell48$ pip install --pre 'httpx[cli]' # The command line client is an optional dependency.48$ pip install 'httpx[cli]' # The command line client is an optional dependency.49```5051Which now allows us to use HTTPX directly from the command-line...52
96 unmodified lines
modified:requirements.txt+2 added
2 unmodified lines
3# needs to pass with the latest version of the packages.4# Reference: https://github.com/encode/httpx/pull/1721#discussion_r6612415885-e .[cli,http2,brotli]67charset-normalizer==2.0.689# Documentation10mkdocs==1.2.211mkautodoc==0.1.012mkdocs-material==7.2.6
23 unmodified lines