Skip to content
Myr

README.md

This file

Path

README.md

127 lines · 4.6 KiB · Markdown

Last changed by

Update README.mdTom Christiebefore adoptionc6872e1

History of this file

Take it

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

Fix race condition on stream.read (#535)Florimond Mancabefore adoptiona05ba2e

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>

Fix race condition on stream.read (#535)Florimond Mancabefore adoptiona05ba2e

lines 3–7why, 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">

Test Suite on GitHub Actions (#907)Tom Christiebefore adoption19bf211

lines 8–9why, one step back
8<a href="https://github.com/encode/httpx/actions">
9 <img src="https://github.com/encode/httpx/workflows/Test%20Suite/badge.svg" alt="Test Suite">

Fix race condition on stream.read (#535)Florimond Mancabefore adoptiona05ba2e

lines 10–15why, one step back
10</a>
11<a href="https://pypi.org/project/httpx/">12 <img src="https://badge.fury.io/py/httpx.svg" alt="Package version">13</a>14</p>15

Proposed 0.11 docs (#727)Tom Christiebefore adoption2038919

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

Fix race condition on stream.read (#535)Florimond Mancabefore adoptiona05ba2e

line 17why, one step back
17

Proposed 0.11 docs (#727)Tom Christiebefore adoption2038919

line 18why, one step back
18**Note**: _HTTPX should be considered in beta. We believe we've got the public API to

Version 0.12 (#852)Tom Christiebefore adoption6e40c1b

line 19why, one step back
19a stable point now, but would strongly recommend pinning your dependencies to the `0.12.*`

Link to changelogTom Christiebefore adoption97807bf

line 20why, one step back
20release, 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 21why, one step back
21

Fix race condition on stream.read (#535)Florimond Mancabefore adoptiona05ba2e

lines 22–27why, one step back
22---
2324Let's get started...2526```python27>>> import httpx

Proposed 0.11 docs (#727)Tom Christiebefore adoption2038919

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

Fix race condition on stream.read (#535)Florimond Mancabefore adoptiona05ba2e

lines 29–38why, one step back
29>>> r
30<Response [200 OK]>31>>> r.status_code3220033>>> r.headers['content-type']34'text/html; charset=UTF-8'35>>> r.text36'<!doctype html>\n<html>\n<head>\n<title>Example Domain</title>...'37```38

Add an async example to intro snippets (#750)Florimond Mancabefore adoption7d84408

lines 39–50why, one step back
39Or, using the async API...
4041_Use [IPython](https://ipython.readthedocs.io/en/stable/) or Python 3.8+ with `python -m asyncio` to try this code interactively._4243```python44>>> import httpx45>>> async with httpx.AsyncClient() as client:46>>> r = await client.get('https://www.example.org/')47>>> r48<Response [200 OK]>49```50

Fix race condition on stream.read (#535)Florimond Mancabefore adoptiona05ba2e

lines 51–54why, one step back
51## Features
5253HTTPX builds on the well-established usability of `requests`, and gives you:54

Use www.python-httpx.org domainTom Christiebefore adoptionb932d94

lines 55–58why, one step back
55* A broadly [requests-compatible API](https://www.python-httpx.org/compatibility/).
56* Standard synchronous interface, but with [async support if you need it](https://www.python-httpx.org/async/).57* HTTP/1.1 [and HTTP/2 support](https://www.python-httpx.org/http2/).58* 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).

Fix race condition on stream.read (#535)Florimond Mancabefore adoptiona05ba2e

lines 59–60why, one step back
59* Strict timeouts everywhere.
60* Fully type annotated.

Proposed 0.11 docs (#727)Tom Christiebefore adoption2038919

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

Fix race condition on stream.read (#535)Florimond Mancabefore adoptiona05ba2e

lines 62–74why, one step back
62
63Plus all the standard features of `requests`...6465* International Domains and URLs66* Keep-Alive & Connection Pooling67* Sessions with Cookie Persistence68* Browser-style SSL Verification69* Basic/Digest Authentication70* Elegant Key/Value Cookies71* Automatic Decompression72* Automatic Content Decoding73* Unicode Response Bodies74* Multipart File Uploads

Drop sync (#544)Tom Christiebefore adoption206c537

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

Fix race condition on stream.read (#535)Florimond Mancabefore adoptiona05ba2e

lines 76–88why, one step back
76* Connection Timeouts
77* Streaming Downloads78* .netrc Support79* Chunked Requests8081## Installation8283Install with pip:8485```shell86$ pip install httpx87```88

Fix casing nits (#889)Florimond Mancabefore adoptiond63108d

line 89why, one step back
89HTTPX requires Python 3.6+.

Fix race condition on stream.read (#535)Florimond Mancabefore adoptiona05ba2e

lines 90–92why, one step back
90
91## Documentation92

Use www.python-httpx.org domainTom Christiebefore adoptionb932d94

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

Fix race condition on stream.read (#535)Florimond Mancabefore adoptiona05ba2e

line 94why, one step back
94

Use www.python-httpx.org domainTom Christiebefore adoptionb932d94

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

Fix race condition on stream.read (#535)Florimond Mancabefore adoptiona05ba2e

line 96why, one step back
96

Use www.python-httpx.org domainTom Christiebefore adoptionb932d94

line 97why, one step back
97For 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.

Fix race condition on stream.read (#535)Florimond Mancabefore adoptiona05ba2e

line 98why, one step back
98

Use www.python-httpx.org domainTom Christiebefore adoptionb932d94

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

Fix race condition on stream.read (#535)Florimond Mancabefore adoptiona05ba2e

line 100why, one step back
100

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

lines 101–102why, one step back
101To find out about tools that integrate with HTTPX, see [Third Party Packages](https://www.python-httpx.org/third-party-packages/).
102

Fix race condition on stream.read (#535)Florimond Mancabefore adoptiona05ba2e

lines 103–104why, one step back
103## Contribute
104

Use www.python-httpx.org domainTom Christiebefore adoptionb932d94

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

Fix race condition on stream.read (#535)Florimond Mancabefore adoptiona05ba2e

lines 106–108why, one step back
106
107## Dependencies108

Fix casing nits (#889)Florimond Mancabefore adoptiond63108d

line 109why, one step back
109The HTTPX project relies on these excellent libraries:

Fix race condition on stream.read (#535)Florimond Mancabefore adoptiona05ba2e

line 110why, one step back
110

Proposed 0.11 docs (#727)Tom Christiebefore adoption2038919

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

Fix race condition on stream.read (#535)Florimond Mancabefore adoptiona05ba2e

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

Proposed 0.11 docs (#727)Tom Christiebefore adoption2038919

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

Fix race condition on stream.read (#535)Florimond Mancabefore adoptiona05ba2e

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

Concurrency autodetection (#585)Tom Christiebefore adoption3cbe731

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

Fix race condition on stream.read (#535)Florimond Mancabefore adoptiona05ba2e

lines 120–127why, one step back
120* `brotlipy` - Decoding for "brotli" compressed responses. *(Optional)*
121122A huge amount of credit is due to `requests` for the API layout that123much of this work follows, as well as to `urllib3` for plenty of design124inspiration around the lower-level networking details.125126<p align="center">&mdash; ⭐️ &mdash;</p>127<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>