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 fileTake 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 back1<p align="center">Use www.python-httpx.org domainTom Christiebefore adoption367bff6
line 2why, one step back2 <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 back3</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–22why, 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.*`Link to changelogTom Christiebefore adoption97807bf
line 23why, one step back23release, 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 back24Release 0.7.4 (#388)Florimond Mancabefore adoption640667d
lines 25–30why, one step back25---2627Let's get started...2829```python30>>> import httpxProposed 0.11 docs (#727)Tom Christiebefore adoption2038919
line 31why, one step back31>>> r = httpx.get('https://www.example.org/')Release 0.7.4 (#388)Florimond Mancabefore adoption640667d
lines 32–45why, one step back32>>> r33<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:45Use www.python-httpx.org domainTom Christiebefore adoptionb932d94
lines 46–49why, one step back46* 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 back50* Strict timeouts everywhere.51* Fully type annotated.Proposed 0.11 docs (#727)Tom Christiebefore adoption2038919
line 52why, one step back52* 99% test coverage.Release 0.7.4 (#388)Florimond Mancabefore adoption640667d
lines 53–65why, one step back5354Plus 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 UploadsDrop sync (#544)Tom Christiebefore adoption206c537
line 66why, one step back66* HTTP(S) Proxy SupportRelease 0.7.4 (#388)Florimond Mancabefore adoption640667d
lines 67–83why, one step back67* Connection Timeouts68* Streaming Downloads69* .netrc Support70* Chunked Requests7172## Installation7374Install with pip:7576```shell77$ pip install httpx78```7980httpx requires Python 3.6+8182## Documentation83Use www.python-httpx.org domainTom Christiebefore adoptionb932d94
line 84why, one step back84Project 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 back85Use www.python-httpx.org domainTom Christiebefore adoptionb932d94
line 86why, one step back86For 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 back87Use www.python-httpx.org domainTom Christiebefore adoptionb932d94
line 88why, one step back88For 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 back89Use www.python-httpx.org domainTom Christiebefore adoptionb932d94
line 90why, one step back90The [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 back9192## Contribute93Use www.python-httpx.org domainTom Christiebefore adoptionb932d94
line 94why, one step back94If 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 back9596## Dependencies9798The httpx project relies on these excellent libraries:99Proposed 0.11 docs (#727)Tom Christiebefore adoption2038919
line 100why, one step back100* `urllib3` - Sync client support.Release 0.7.4 (#388)Florimond Mancabefore adoption640667d
line 101why, one step back101* `h11` - HTTP/1.1 support.Proposed 0.11 docs (#727)Tom Christiebefore adoption2038919
line 102why, one step back102* `h2` - HTTP/2 support.Release 0.7.4 (#388)Florimond Mancabefore adoption640667d
lines 103–107why, one step back103* `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 back108* `sniffio` - Async library autodetection.Release 0.7.4 (#388)Florimond Mancabefore adoption640667d
lines 109–112why, one step back109* `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 designFix typos, spelling issues, and grammar in docs (#426)Kyle Galbraithbefore adoptionb65bce5
line 113why, one step back113inspiration around the lower-level networking details.Release 0.7.4 (#388)Florimond Mancabefore adoption640667d
lines 114–116why, one step back114115<p align="center">— ⭐️ —</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>