Skip to content
Myr

README.md

This file

Path

README.md

116 lines · 4.3 KiB · Markdown

Last changed by

Use www.python-httpx.org domainTom Christiebefore adoption367bff6

History of this file

Take it

The walk stopped after 200 commits: lines older than 640667d point at it.

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

line 1why, one step back
1<p align="center">

Use www.python-httpx.org domainTom Christiebefore adoption367bff6

line 2why, one step back
2 <a href="https://www.python-httpx.org/"><img width="350" height="208" src="https://raw.githubusercontent.com/encode/httpx/master/docs/img/logo.jpg" alt='HTTPX'></a>

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

lines 3–18why, one step back
3</p>
45<p align="center"><strong>HTTPX</strong> <em>- A next-generation HTTP client for Python.</em></p>67<p align="center">8<a href="https://travis-ci.org/encode/httpx">9 <img src="https://travis-ci.org/encode/httpx.svg?branch=master" alt="Build Status">10</a>11<a href="https://codecov.io/gh/encode/httpx">12 <img src="https://codecov.io/gh/encode/httpx/branch/master/graph/badge.svg" alt="Coverage">13</a>14<a href="https://pypi.org/project/httpx/">15 <img src="https://badge.fury.io/py/httpx.svg" alt="Package version">16</a>17</p>18

Proposed 0.11 docs (#727)Tom Christiebefore adoption2038919

line 19why, one step back
19HTTPX 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.

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

line 20why, one step back
20

Proposed 0.11 docs (#727)Tom Christiebefore adoption2038919

lines 21–22why, one step back
21**Note**: _HTTPX should be considered in beta. We believe we've got the public API to
22a stable point now, but would strongly recommend pinning your dependencies to the `0.11.*`

Link to changelogTom Christiebefore adoption97807bf

line 23why, one step back
23release, so that you're able to properly review [API changes between package updates](https://github.com/encode/httpx/blob/master/CHANGELOG.md). A 1.0 release is expected to be issued sometime on or before April 2020._

Drop sync (#544)Tom Christiebefore adoption206c537

line 24why, one step back
24

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

lines 25–30why, one step back
25---
2627Let's get started...2829```python30>>> import httpx

Proposed 0.11 docs (#727)Tom Christiebefore adoption2038919

line 31why, one step back
31>>> r = httpx.get('https://www.example.org/')

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

lines 32–45why, one step back
32>>> r
33<Response [200 OK]>34>>> r.status_code3520036>>> r.headers['content-type']37'text/html; charset=UTF-8'38>>> r.text39'<!doctype html>\n<html>\n<head>\n<title>Example Domain</title>...'40```4142## Features4344HTTPX builds on the well-established usability of `requests`, and gives you:45

Use www.python-httpx.org domainTom Christiebefore adoptionb932d94

lines 46–49why, one step back
46* A broadly [requests-compatible API](https://www.python-httpx.org/compatibility/).
47* Standard synchronous interface, but with [async support if you need it](https://www.python-httpx.org/async/).48* HTTP/1.1 [and HTTP/2 support](https://www.python-httpx.org/http2/).49* Ability to make requests directly to [WSGI applications](https://www.python-httpx.org/advanced/#calling-into-python-web-apps) or [ASGI applications](https://www.python-httpx.org/async/#calling-into-python-web-apps).

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

lines 50–51why, one step back
50* Strict timeouts everywhere.
51* Fully type annotated.

Proposed 0.11 docs (#727)Tom Christiebefore adoption2038919

line 52why, one step back
52* 99% test coverage.

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

lines 53–65why, one step back
53
54Plus all the standard features of `requests`...5556* International Domains and URLs57* Keep-Alive & Connection Pooling58* Sessions with Cookie Persistence59* Browser-style SSL Verification60* Basic/Digest Authentication61* Elegant Key/Value Cookies62* Automatic Decompression63* Automatic Content Decoding64* Unicode Response Bodies65* Multipart File Uploads

Drop sync (#544)Tom Christiebefore adoption206c537

line 66why, one step back
66* HTTP(S) Proxy Support

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

lines 67–83why, one step back
67* Connection Timeouts
68* Streaming Downloads69* .netrc Support70* Chunked Requests7172## Installation7374Install with pip:7576```shell77$ pip install httpx78```7980httpx requires Python 3.6+8182## Documentation83

Use www.python-httpx.org domainTom Christiebefore adoptionb932d94

line 84why, one step back
84Project documentation is available at [https://www.python-httpx.org/](https://www.python-httpx.org/).

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

line 85why, one step back
85

Use www.python-httpx.org domainTom Christiebefore adoptionb932d94

line 86why, one step back
86For a run-through of all the basics, head over to the [QuickStart](https://www.python-httpx.org/quickstart/).

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

line 87why, one step back
87

Use www.python-httpx.org domainTom Christiebefore adoptionb932d94

line 88why, one step back
88For more advanced topics, see the [Advanced Usage](https://www.python-httpx.org/advanced/) section, the [async support](https://www.python-httpx.org/async/) section, or the [HTTP/2](https://www.python-httpx.org/http2/) section.

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

line 89why, one step back
89

Use www.python-httpx.org domainTom Christiebefore adoptionb932d94

line 90why, one step back
90The [Developer Interface](https://www.python-httpx.org/api/) provides a comprehensive API reference.

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

lines 91–93why, one step back
91
92## Contribute93

Use www.python-httpx.org domainTom Christiebefore adoptionb932d94

line 94why, one step back
94If you want to contribute with HTTPX check out the [Contributing Guide](https://www.python-httpx.org/contributing/) to learn how to start.

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

lines 95–99why, one step back
95
96## Dependencies9798The httpx project relies on these excellent libraries:99

Proposed 0.11 docs (#727)Tom Christiebefore adoption2038919

line 100why, one step back
100* `urllib3` - Sync client support.

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

line 101why, one step back
101* `h11` - HTTP/1.1 support.

Proposed 0.11 docs (#727)Tom Christiebefore adoption2038919

line 102why, one step back
102* `h2` - HTTP/2 support.

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

lines 103–107why, one step back
103* `certifi` - SSL certificates.
104* `chardet` - Fallback auto-detection for response encoding.105* `hstspreload` - determines whether IDNA-encoded host should be only accessed via HTTPS.106* `idna` - Internationalized domain name support.107* `rfc3986` - URL parsing & normalization.

Concurrency autodetection (#585)Tom Christiebefore adoption3cbe731

line 108why, one step back
108* `sniffio` - Async library autodetection.

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

lines 109–112why, one step back
109* `brotlipy` - Decoding for "brotli" compressed responses. *(Optional)*
110111A huge amount of credit is due to `requests` for the API layout that112much of this work follows, as well as to `urllib3` for plenty of design

Fix typos, spelling issues, and grammar in docs (#426)Kyle Galbraithbefore adoptionb65bce5

line 113why, one step back
113inspiration around the lower-level networking details.

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

lines 114–116why, one step back
114
115<p align="center">&mdash; ⭐️ &mdash;</p>116<p align="center"><i>HTTPX is <a href="https://github.com/encode/httpx/blob/master/LICENSE.md">BSD licensed</a> code. Designed & built in Brighton, England.</i></p>