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 fileTake 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 back1<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>18Proposed 0.11 docs (#727)Tom Christiebefore adoption2038919
line 19why, one step back19HTTPX 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 back20Proposed 0.11 docs (#727)Tom Christiebefore adoption2038919
lines 21–24why, one step back21**Note**: _HTTPX should be considered in beta. We believe we've got the public API to22a 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 back25Release 0.7.4 (#388)Florimond Mancabefore adoption640667d
lines 26–31why, one step back26---2728Let's get started...2930```python31>>> import httpxProposed 0.11 docs (#727)Tom Christiebefore adoption2038919
line 32why, one step back32>>> r = httpx.get('https://www.example.org/')Release 0.7.4 (#388)Florimond Mancabefore adoption640667d
lines 33–46why, one step back33>>> r34<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:46Use www.python-httpx.org domainTom Christiebefore adoptionb932d94
lines 47–50why, one step back47* 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 back51* Strict timeouts everywhere.52* Fully type annotated.Proposed 0.11 docs (#727)Tom Christiebefore adoption2038919
line 53why, one step back53* 99% test coverage.Release 0.7.4 (#388)Florimond Mancabefore adoption640667d
lines 54–66why, one step back5455Plus 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 UploadsDrop sync (#544)Tom Christiebefore adoption206c537
line 67why, one step back67* HTTP(S) Proxy SupportRelease 0.7.4 (#388)Florimond Mancabefore adoption640667d
lines 68–84why, one step back68* Connection Timeouts69* Streaming Downloads70* .netrc Support71* Chunked Requests7273## Installation7475Install with pip:7677```shell78$ pip install httpx79```8081httpx requires Python 3.6+8283## Documentation84Use www.python-httpx.org domainTom Christiebefore adoptionb932d94
line 85why, one step back85Project 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 back86Use www.python-httpx.org domainTom Christiebefore adoptionb932d94
line 87why, one step back87For 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 back88Use www.python-httpx.org domainTom Christiebefore adoptionb932d94
line 89why, one step back89For 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 back90Use www.python-httpx.org domainTom Christiebefore adoptionb932d94
line 91why, one step back91The [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 back9293## Contribute94Use www.python-httpx.org domainTom Christiebefore adoptionb932d94
line 95why, one step back95If 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 back9697## Dependencies9899The httpx project relies on these excellent libraries:100Proposed 0.11 docs (#727)Tom Christiebefore adoption2038919
line 101why, one step back101* `urllib3` - Sync client support.Release 0.7.4 (#388)Florimond Mancabefore adoption640667d
line 102why, one step back102* `h11` - HTTP/1.1 support.Proposed 0.11 docs (#727)Tom Christiebefore adoption2038919
line 103why, one step back103* `h2` - HTTP/2 support.Release 0.7.4 (#388)Florimond Mancabefore adoption640667d
lines 104–108why, one step back104* `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 back109* `sniffio` - Async library autodetection.Release 0.7.4 (#388)Florimond Mancabefore adoption640667d
lines 110–113why, one step back110* `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 designFix typos, spelling issues, and grammar in docs (#426)Kyle Galbraithbefore adoptionb65bce5
line 114why, one step back114inspiration around the lower-level networking details.Release 0.7.4 (#388)Florimond Mancabefore adoption640667d
lines 115–117why, one step back115116<p align="center">— ⭐️ —</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>