Skip to content
Myr

README.md

This file

Path

README.md

117 lines · 4.3 KiB · Markdown

Last changed by

Use www.python-httpx.org domainTom Christiebefore adoptionb932d94

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

lines 1–18why, one step back
1<p align="center">
2 <a href="https://www.encode.io/httpx/"><img width="350" height="208" src="https://raw.githubusercontent.com/encode/httpx/master/docs/img/logo.jpg" alt='HTTPX'></a>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–24why, 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.*`23release, so that you're able to properly review API changes between package updates.24A 1.0 release is expected to be issued sometime on or before April 2020._

Drop sync (#544)Tom Christiebefore adoption206c537

line 25why, one step back
25

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

lines 26–31why, one step back
26---
2728Let's get started...2930```python31>>> import httpx

Proposed 0.11 docs (#727)Tom Christiebefore adoption2038919

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

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

lines 33–46why, one step back
33>>> r
34<Response [200 OK]>35>>> r.status_code3620037>>> r.headers['content-type']38'text/html; charset=UTF-8'39>>> r.text40'<!doctype html>\n<html>\n<head>\n<title>Example Domain</title>...'41```4243## Features4445HTTPX builds on the well-established usability of `requests`, and gives you:46

Use www.python-httpx.org domainTom Christiebefore adoptionb932d94

lines 47–50why, one step back
47* A broadly [requests-compatible API](https://www.python-httpx.org/compatibility/).
48* Standard synchronous interface, but with [async support if you need it](https://www.python-httpx.org/async/).49* HTTP/1.1 [and HTTP/2 support](https://www.python-httpx.org/http2/).50* 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 51–52why, one step back
51* Strict timeouts everywhere.
52* Fully type annotated.

Proposed 0.11 docs (#727)Tom Christiebefore adoption2038919

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

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

lines 54–66why, one step back
54
55Plus all the standard features of `requests`...5657* International Domains and URLs58* Keep-Alive & Connection Pooling59* Sessions with Cookie Persistence60* Browser-style SSL Verification61* Basic/Digest Authentication62* Elegant Key/Value Cookies63* Automatic Decompression64* Automatic Content Decoding65* Unicode Response Bodies66* Multipart File Uploads

Drop sync (#544)Tom Christiebefore adoption206c537

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

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

lines 68–84why, one step back
68* Connection Timeouts
69* Streaming Downloads70* .netrc Support71* Chunked Requests7273## Installation7475Install with pip:7677```shell78$ pip install httpx79```8081httpx requires Python 3.6+8283## Documentation84

Use www.python-httpx.org domainTom Christiebefore adoptionb932d94

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

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

line 86why, one step back
86

Use www.python-httpx.org domainTom Christiebefore adoptionb932d94

line 87why, one step back
87For 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 88why, one step back
88

Use www.python-httpx.org domainTom Christiebefore adoptionb932d94

line 89why, one step back
89For 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 90why, one step back
90

Use www.python-httpx.org domainTom Christiebefore adoptionb932d94

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

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

lines 92–94why, one step back
92
93## Contribute94

Use www.python-httpx.org domainTom Christiebefore adoptionb932d94

line 95why, one step back
95If 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 96–100why, one step back
96
97## Dependencies9899The httpx project relies on these excellent libraries:100

Proposed 0.11 docs (#727)Tom Christiebefore adoption2038919

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

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

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

Proposed 0.11 docs (#727)Tom Christiebefore adoption2038919

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

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

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

Concurrency autodetection (#585)Tom Christiebefore adoption3cbe731

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

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

lines 110–113why, one step back
110* `brotlipy` - Decoding for "brotli" compressed responses. *(Optional)*
111112A huge amount of credit is due to `requests` for the API layout that113much 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 114why, one step back
114inspiration around the lower-level networking details.

Release 0.7.4 (#388)Florimond Mancabefore adoption640667d

lines 115–117why, one step back
115
116<p align="center">&mdash; ⭐️ &mdash;</p>117<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>