README.md
This file
Path
README.md
112 lines · 3.6 KiB · Markdown
Last changed by
Update README.mdTom Christiebefore adoption95db220
History of this fileTake it
Branding updates for httpx (#130)Tom Christiebefore adoption17bb165
lines 1–3why, one step back1<p align="center">2 <img width="350" height="208" src="https://raw.githubusercontent.com/encode/httpx/master/docs/img/logo.jpg" alt='HTTPX'>3</p>StuffTom Christiebefore adoption30530d4
line 4why, one step back4Branding updates for httpx (#130)Tom Christiebefore adoption17bb165
line 5why, one step back5<p align="center">Update README.mdTom Christiebefore adoption95db220
line 6why, one step back6HTTPXBranding updates for httpx (#130)Tom Christiebefore adoption17bb165
lines 7–8why, one step back7</p>8Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
lines 9–10why, one step back9<a href="https://travis-ci.org/encode/httpx">10 <img src="https://travis-ci.org/encode/httpx.svg?branch=master" alt="Build Status">Merge pull request #43 from encode/badgesTom Christiebefore adoption3553625
line 11why, one step back11</a>Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
lines 12–13why, one step back12<a href="https://codecov.io/gh/encode/httpx">13 <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 14why, one step back14</a>Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
lines 15–16why, one step back15<a href="https://pypi.org/project/httpx/">16 <img src="https://badge.fury.io/py/httpx.svg" alt="Package version">Merge pull request #43 from encode/badgesTom Christiebefore adoption3553625
lines 17–18why, one step back17</a>18Branding updates for httpx (#130)Tom Christiebefore adoption17bb165
line 19why, one step back19<em>A next-generation HTTP client for Python.</em>Update READMETom Christiebefore adoption665743a
line 20why, one step back20Tweak README (#87)Tom Christiebefore adoption9507ce2
line 21why, one step back21**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 22why, one step back22Tweak README (#87)Tom Christiebefore adoption9507ce2
lines 23–27why, one step back23---2425Let's get started...2627```pythonRenaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
lines 28–29why, one step back28>>> import httpx29>>> r = httpx.get('https://www.example.org/')Int status codes (#92)Tom Christiebefore adoption56a7943
lines 30–31why, one step back30>>> r31<Response [200 OK]>Tweak README (#87)Tom Christiebefore adoption9507ce2
line 32why, one step back32>>> r.status_codeInt status codes (#92)Tom Christiebefore adoption56a7943
line 33why, one step back33200Tweak README (#87)Tom Christiebefore adoption9507ce2
lines 34–43why, one step back34>>> r.protocol35'HTTP/2'36>>> 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## Features43Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 44why, one step back44HTTPX builds on the well-established usability of `requests`, and gives you:Tweak README (#87)Tom Christiebefore adoption9507ce2
lines 45–47why, one step back4546* A requests-compatible API.47* HTTP/2 and HTTP/1.1 support.Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
lines 48–50why, one step back48* Support for [issuing HTTP requests in parallel](https://www.encode.io/httpx/parallel/). *(Coming soon)*49* Standard synchronous interface, but [with `async`/`await` support if you need it](https://www.encode.io/httpx/async/).50* 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 51why, one step back51* Strict timeouts everywhere.Truckin' onTom Christiebefore adoption6b60d95
line 52why, one step back52* Fully type annotated.Update README.mdTom Christiebefore adoption23e0786
line 53why, one step back53* 100% test coverage.Update READMETom Christiebefore adoption665743a
line 54why, one step back54Tweak README (#87)Tom Christiebefore adoption9507ce2
line 55why, one step back55Plus all the standard features of `requests`...Update READMETom Christiebefore adoption665743a
line 56why, one step back56Truckin' onTom Christiebefore adoption6b60d95
lines 57–58why, one step back57* International Domains and URLs58* Keep-Alive & Connection PoolingAdd cookie interfacesTom Christiebefore adoption0717998
line 59why, one step back59* Sessions with Cookie PersistenceTruckin' onTom Christiebefore adoption6b60d95
line 60why, one step back60* Browser-style SSL VerificationSupport WSGI and ASGI apps. (#94)Tom Christiebefore adoptionbb86970
line 61why, one step back61* Basic/Digest Authentication *(Digest is still TODO)*Add cookie interfacesTom Christiebefore adoption0717998
line 62why, one step back62* Elegant Key/Value CookiesTruckin' onTom Christiebefore adoption6b60d95
lines 63–65why, one step back63* Automatic Decompression64* Automatic Content Decoding65* Unicode Response BodiesAdd multipart docsTom Christiebefore adoptiond21e3ab
line 66why, one step back66* Multipart File UploadsSupport WSGI and ASGI apps. (#94)Tom Christiebefore adoptionbb86970
line 67why, one step back67* HTTP(S) Proxy Support *(TODO)*Truckin' onTom Christiebefore adoption6b60d95
lines 68–69why, one step back68* Connection Timeouts69* Streaming DownloadsSupport WSGI and ASGI apps. (#94)Tom Christiebefore adoptionbb86970
line 70why, one step back70* .netrc Support *(TODO)*Truckin' onTom Christiebefore adoption6b60d95
line 71why, one step back71* Chunked RequestsUpdate READMETom Christiebefore adoption665743a
line 72why, one step back72Docs tweaksTom Christiebefore adoption60dca3d
lines 73–77why, one step back73## Installation7475Install with pip:7677```shellRenaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 78why, one step back78$ pip install httpxDocs tweaksTom Christiebefore adoption60dca3d
lines 79–80why, one step back79```80Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 81why, one step back81httpx requires Python 3.6+Docs tweaksTom Christiebefore adoption60dca3d
line 82why, one step back82Tweak README (#87)Tom Christiebefore adoption9507ce2
line 83why, one step back83## DocumentationUpdate README.mdTom Christiebefore adoption01a3c09
line 84why, one step back84Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 85why, one step back85Project documentation is available at [www.encode.io/httpx/](https://www.encode.io/httpx/).Update README.mdTom Christiebefore adoption337eb70
line 86why, one step back86Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 87why, one step back87For a run-through of all the basics, head over to the [QuickStart](https://www.encode.io/httpx/quickstart/).StuffTom Christiebefore adoption30530d4
line 88why, one step back88Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
lines 89–91why, one step back89For more advanced topics, see the [Advanced Usage](https://www.encode.io/httpx/advanced/) section, or90the specific topics on making [Parallel Requests](https://www.encode.io/httpx/parallel/) or using the91[Async Client](https://www.encode.io/httpx/async/).Docs linksTom Christiebefore adoptionc2c87e1
line 92why, one step back92Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 93why, one step back93The [Developer Interface](https://www.encode.io/httpx/api/) provides a comprehensive API reference.StuffTom Christiebefore adoption30530d4
line 94why, one step back94Update READMETom Christiebefore adoption4fe2f69
lines 95–96why, one step back95## Dependencies96Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 97why, one step back97The httpx project relies on these excellent libraries:Tweak README (#87)Tom Christiebefore adoption9507ce2
line 98why, one step back98Update READMETom Christiebefore adoption4fe2f69
line 99why, one step back99* `h2` - HTTP/2 support.Add cookie interfacesTom Christiebefore adoption0717998
line 100why, one step back100* `h11` - HTTP/1.1 support.Update READMETom Christiebefore adoption4fe2f69
lines 101–106why, one step back101* `certifi` - SSL certificates.102* `chardet` - Fallback auto-detection for response encoding.103* `idna` - Internationalized domain name support.104* `rfc3986` - URL parsing & normalization.105* `brotlipy` - Decoding for "brotli" compressed responses. *(Optional)*106Update READMETom Christiebefore adoption58461d4
line 107why, one step back107A huge amount of credit is due to `requests` for the API layout thatUpdate README.mdTom Christiebefore adoption84b9691
lines 108–109why, one step back108much of this work follows, as well as to `urllib3` for plenty of design109inspiration around the lower level networking details.Docs tweaksTom Christiebefore adoption60dca3d
lines 110–111why, one step back110111<p align="center">— ⭐️ —</p>Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 112why, one step back112<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>