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
Provenance
- Commit
35164b7- Tree
6a8e29e- Author
Tom Christie <tom@tomchristie.com>- Committer
GitHub <noreply@github.com>- Parent
deb1a2b
5 files changed+15 added−15 removed
modified:docs/index.md+5 added-7 removed
23 unmodified lines2425262728282930313031343233343735363740383940414210 unmodified lines5354555659575859606191 unmodified lines23 unmodified linesHTTPX is a fully featured HTTP client for Python 3, which provides sync and async APIs, and support for both HTTP/1.1 and HTTP/2.
!!! note This is the documentation for the 1.0 pre-release. 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. See [the CHANGELOG](https://github.com/encode/httpx/blob/master/CHANGELOG.md) for more details.
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. See [the CHANGELOG](https://github.com/encode/httpx/blob/master/CHANGELOG.md) for more details.
---
Installing the HTTPX 1.0 pre-release.Install HTTPX using pip:
```shell$ pip install httpx --pre$ pip install httpx```
Now, let's get started...Now, let's get started:
```pycon>>> import httpx>>> r = httpx.get('https://www.example.org/')10 unmodified linesOr, using the command-line client.
```shell# The command line client is an optional dependency.$ pip install --pre 'httpx[cli]'$ pip install 'httpx[cli]'```
Which now allows us to use HTTPX directly from the command-line...
91 unmodified linesmodified: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 lines3 All notable changes to this project will be documented in this file.4 5 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).6 7-## 1.0.0.beta07+## 0.20.0 (13th October, 2021)8 9-The 1.0 pre-release adds an integrated command-line client, and also includes some9+The 0.20.0 release adds an integrated command-line client, and also includes some10 design changes. The most notable of these is that redirect responses are no longer11 automatically followed, unless specifically requested.12 13 This design decision prioritises a more explicit approach to redirects, in order865 unmodified linesmodified:README.md+5 added-5 removed
15 unmodified lines16 HTTPX is a fully featured HTTP client library for Python 3. It includes **an integrated17 command line client**, has support for both **HTTP/1.1 and HTTP/2**, and provides both **sync18 and async APIs**.19 20-**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.*21 22 ---23 24-Installing HTTPX.24+Install HTTPX using pip:25 26 ```shell27-$ pip install httpx --pre27+$ pip install httpx28 ```29 30-Now, let's get started...30+Now, let's get started:31 32 ```pycon33 >>> import httpx34 >>> r = httpx.get('https://www.example.org/')9 unmodified lines44 45 Or, using the command-line client.46 47 ```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 ```50 51 Which now allows us to use HTTPX directly from the command-line...52 96 unmodified linesmodified:requirements.txt+2 added
2 unmodified lines3 # 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]6 7+charset-normalizer==2.0.68+9 # Documentation10 mkdocs==1.2.211 mkautodoc==0.1.012 mkdocs-material==7.2.623 unmodified lines