README.md
This file
Path
README.md
106 lines · 3.4 KiB · Markdown
Last changed by
Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
History of this fileTake it
Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 1why, one step back1# HTTPXStuffTom Christiebefore adoption30530d4
line 2why, one step back2Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
lines 3–4why, one step back3<a href="https://travis-ci.org/encode/httpx">4 <img src="https://travis-ci.org/encode/httpx.svg?branch=master" alt="Build Status">Merge pull request #43 from encode/badgesTom Christiebefore adoption3553625
line 5why, one step back5</a>Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
lines 6–7why, one step back6<a href="https://codecov.io/gh/encode/httpx">7 <img src="https://codecov.io/gh/encode/httpx/branch/master/graph/badge.svg" alt="Coverage">Merge pull request #43 from encode/badgesTom Christiebefore adoption3553625
line 8why, one step back8</a>Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
lines 9–10why, one step back9<a href="https://pypi.org/project/httpx/">10 <img src="https://badge.fury.io/py/httpx.svg" alt="Package version">Merge pull request #43 from encode/badgesTom Christiebefore adoption3553625
lines 11–12why, one step back11</a>12Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 13why, one step back13HTTPX is a next-generation HTTP client for Python 3.Update READMETom Christiebefore adoption665743a
line 14why, one step back14Tweak README (#87)Tom Christiebefore adoption9507ce2
line 15why, one step back15**Note**: *This project should be considered as an "alpha" release. It is substantially API complete, but there are still some areas that need more work.*Update README.mdTom Christiebefore adoption1e98f31
line 16why, one step back16Tweak README (#87)Tom Christiebefore adoption9507ce2
lines 17–21why, one step back17---1819Let's get started...2021```pythonRenaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
lines 22–23why, one step back22>>> import httpx23>>> r = httpx.get('https://www.example.org/')Int status codes (#92)Tom Christiebefore adoption56a7943
lines 24–25why, one step back24>>> r25<Response [200 OK]>Tweak README (#87)Tom Christiebefore adoption9507ce2
line 26why, one step back26>>> r.status_codeInt status codes (#92)Tom Christiebefore adoption56a7943
line 27why, one step back27200Tweak README (#87)Tom Christiebefore adoption9507ce2
lines 28–37why, one step back28>>> r.protocol29'HTTP/2'30>>> r.headers['content-type']31'text/html; charset=UTF-8'32>>> r.text33'<!doctype html>\n<html>\n<head>\n<title>Example Domain</title>...'34```3536## Features37Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 38why, one step back38HTTPX builds on the well-established usability of `requests`, and gives you:Tweak README (#87)Tom Christiebefore adoption9507ce2
lines 39–41why, one step back3940* A requests-compatible API.41* HTTP/2 and HTTP/1.1 support.Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
lines 42–44why, one step back42* Support for [issuing HTTP requests in parallel](https://www.encode.io/httpx/parallel/). *(Coming soon)*43* Standard synchronous interface, but [with `async`/`await` support if you need it](https://www.encode.io/httpx/async/).44* Ability to [make requests directly to WSGI or ASGI applications](https://www.encode.io/httpx/advanced/#calling-into-python-web-apps).Tweak README (#87)Tom Christiebefore adoption9507ce2
line 45why, one step back45* Strict timeouts everywhere.Truckin' onTom Christiebefore adoption6b60d95
line 46why, one step back46* Fully type annotated.Update README.mdTom Christiebefore adoption23e0786
line 47why, one step back47* 100% test coverage.Update READMETom Christiebefore adoption665743a
line 48why, one step back48Tweak README (#87)Tom Christiebefore adoption9507ce2
line 49why, one step back49Plus all the standard features of `requests`...Update READMETom Christiebefore adoption665743a
line 50why, one step back50Truckin' onTom Christiebefore adoption6b60d95
lines 51–52why, one step back51* International Domains and URLs52* Keep-Alive & Connection PoolingAdd cookie interfacesTom Christiebefore adoption0717998
line 53why, one step back53* Sessions with Cookie PersistenceTruckin' onTom Christiebefore adoption6b60d95
line 54why, one step back54* Browser-style SSL VerificationSupport WSGI and ASGI apps. (#94)Tom Christiebefore adoptionbb86970
line 55why, one step back55* Basic/Digest Authentication *(Digest is still TODO)*Add cookie interfacesTom Christiebefore adoption0717998
line 56why, one step back56* Elegant Key/Value CookiesTruckin' onTom Christiebefore adoption6b60d95
lines 57–59why, one step back57* Automatic Decompression58* Automatic Content Decoding59* Unicode Response BodiesAdd multipart docsTom Christiebefore adoptiond21e3ab
line 60why, one step back60* Multipart File UploadsSupport WSGI and ASGI apps. (#94)Tom Christiebefore adoptionbb86970
line 61why, one step back61* HTTP(S) Proxy Support *(TODO)*Truckin' onTom Christiebefore adoption6b60d95
lines 62–63why, one step back62* Connection Timeouts63* Streaming DownloadsSupport WSGI and ASGI apps. (#94)Tom Christiebefore adoptionbb86970
line 64why, one step back64* .netrc Support *(TODO)*Truckin' onTom Christiebefore adoption6b60d95
line 65why, one step back65* Chunked RequestsUpdate READMETom Christiebefore adoption665743a
line 66why, one step back66Docs tweaksTom Christiebefore adoption60dca3d
lines 67–71why, one step back67## Installation6869Install with pip:7071```shellRenaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 72why, one step back72$ pip install httpxDocs tweaksTom Christiebefore adoption60dca3d
lines 73–74why, one step back73```74Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 75why, one step back75httpx requires Python 3.6+Docs tweaksTom Christiebefore adoption60dca3d
line 76why, one step back76Tweak README (#87)Tom Christiebefore adoption9507ce2
line 77why, one step back77## DocumentationUpdate README.mdTom Christiebefore adoption01a3c09
line 78why, one step back78Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 79why, one step back79Project documentation is available at [www.encode.io/httpx/](https://www.encode.io/httpx/).Update README.mdTom Christiebefore adoption337eb70
line 80why, one step back80Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 81why, one step back81For a run-through of all the basics, head over to the [QuickStart](https://www.encode.io/httpx/quickstart/).StuffTom Christiebefore adoption30530d4
line 82why, one step back82Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
lines 83–85why, one step back83For more advanced topics, see the [Advanced Usage](https://www.encode.io/httpx/advanced/) section, or84the specific topics on making [Parallel Requests](https://www.encode.io/httpx/parallel/) or using the85[Async Client](https://www.encode.io/httpx/async/).Docs linksTom Christiebefore adoptionc2c87e1
line 86why, one step back86Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 87why, one step back87The [Developer Interface](https://www.encode.io/httpx/api/) provides a comprehensive API reference.StuffTom Christiebefore adoption30530d4
line 88why, one step back88Update READMETom Christiebefore adoption4fe2f69
lines 89–90why, one step back89## Dependencies90Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 91why, one step back91The httpx project relies on these excellent libraries:Tweak README (#87)Tom Christiebefore adoption9507ce2
line 92why, one step back92Update READMETom Christiebefore adoption4fe2f69
line 93why, one step back93* `h2` - HTTP/2 support.Add cookie interfacesTom Christiebefore adoption0717998
line 94why, one step back94* `h11` - HTTP/1.1 support.Update READMETom Christiebefore adoption4fe2f69
lines 95–100why, one step back95* `certifi` - SSL certificates.96* `chardet` - Fallback auto-detection for response encoding.97* `idna` - Internationalized domain name support.98* `rfc3986` - URL parsing & normalization.99* `brotlipy` - Decoding for "brotli" compressed responses. *(Optional)*100Update READMETom Christiebefore adoption58461d4
line 101why, one step back101A huge amount of credit is due to `requests` for the API layout thatUpdate README.mdTom Christiebefore adoption84b9691
lines 102–103why, one step back102much of this work follows, as well as to `urllib3` for plenty of design103inspiration around the lower level networking details.Docs tweaksTom Christiebefore adoption60dca3d
lines 104–105why, one step back104105<p align="center">— ⭐️ —</p>Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 106why, one step back106<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>