README.md
This file
Path
README.md
110 lines · 3.7 KiB · Markdown
Last changed by
Update README.mdTom Christiebefore adoptionedd7029
History of this fileTake it
The walk stopped after 200 commits: lines older than 665743a point at it.
Branding updates for httpx (#130)Tom Christiebefore adoption17bb165
line 1why, one step back1<p align="center">Update README.mdTom Christiebefore adoptionedd7029
line 2why, one step back2 <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>Branding updates for httpx (#130)Tom Christiebefore adoption17bb165
lines 3–4why, one step back3</p>4Update README.mdTom Christiebefore adoption0450142
line 5why, one step back5<p align="center"><strong>HTTPX</strong> <em>- A next-generation HTTP client for Python.</em></p>Update README.mdTom Christiebefore adoptionf7c5378
lines 6–7why, one step back67<p align="center">Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
lines 8–9why, one step back8<a href="https://travis-ci.org/encode/httpx">9 <img src="https://travis-ci.org/encode/httpx.svg?branch=master" alt="Build Status">Merge pull request #43 from encode/badgesTom Christiebefore adoption3553625
line 10why, one step back10</a>Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
lines 11–12why, one step back11<a href="https://codecov.io/gh/encode/httpx">12 <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 13why, one step back13</a>Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
lines 14–15why, one step back14<a href="https://pypi.org/project/httpx/">15 <img src="https://badge.fury.io/py/httpx.svg" alt="Package version">Merge pull request #43 from encode/badgesTom Christiebefore adoption3553625
line 16why, one step back16</a>Update README.mdTom Christiebefore adoptionf7c5378
line 17why, one step back17</p>Update READMETom Christiebefore adoption665743a
line 18why, one step back18Tweak README (#87)Tom Christiebefore adoption9507ce2
line 19why, one step back19**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 20why, one step back20Tweak README (#87)Tom Christiebefore adoption9507ce2
lines 21–25why, one step back21---2223Let's get started...2425```pythonRenaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
lines 26–27why, one step back26>>> import httpx27>>> r = httpx.get('https://www.example.org/')Int status codes (#92)Tom Christiebefore adoption56a7943
lines 28–29why, one step back28>>> r29<Response [200 OK]>Tweak README (#87)Tom Christiebefore adoption9507ce2
line 30why, one step back30>>> r.status_codeInt status codes (#92)Tom Christiebefore adoption56a7943
line 31why, one step back31200Tweak README (#87)Tom Christiebefore adoption9507ce2
lines 32–41why, one step back32>>> r.protocol33'HTTP/2'34>>> r.headers['content-type']35'text/html; charset=UTF-8'36>>> r.text37'<!doctype html>\n<html>\n<head>\n<title>Example Domain</title>...'38```3940## Features41Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 42why, one step back42HTTPX builds on the well-established usability of `requests`, and gives you:Tweak README (#87)Tom Christiebefore adoption9507ce2
lines 43–45why, one step back4344* A requests-compatible API.45* HTTP/2 and HTTP/1.1 support.Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
lines 46–48why, one step back46* Support for [issuing HTTP requests in parallel](https://www.encode.io/httpx/parallel/). *(Coming soon)*47* Standard synchronous interface, but [with `async`/`await` support if you need it](https://www.encode.io/httpx/async/).48* 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 49why, one step back49* Strict timeouts everywhere.Truckin' onTom Christiebefore adoption6b60d95
line 50why, one step back50* Fully type annotated.Update README.mdTom Christiebefore adoption23e0786
line 51why, one step back51* 100% test coverage.Update READMETom Christiebefore adoption665743a
line 52why, one step back52Tweak README (#87)Tom Christiebefore adoption9507ce2
line 53why, one step back53Plus all the standard features of `requests`...Update READMETom Christiebefore adoption665743a
line 54why, one step back54Truckin' onTom Christiebefore adoption6b60d95
lines 55–56why, one step back55* International Domains and URLs56* Keep-Alive & Connection PoolingAdd cookie interfacesTom Christiebefore adoption0717998
line 57why, one step back57* Sessions with Cookie PersistenceTruckin' onTom Christiebefore adoption6b60d95
line 58why, one step back58* Browser-style SSL VerificationSupport WSGI and ASGI apps. (#94)Tom Christiebefore adoptionbb86970
line 59why, one step back59* Basic/Digest Authentication *(Digest is still TODO)*Add cookie interfacesTom Christiebefore adoption0717998
line 60why, one step back60* Elegant Key/Value CookiesTruckin' onTom Christiebefore adoption6b60d95
lines 61–63why, one step back61* Automatic Decompression62* Automatic Content Decoding63* Unicode Response BodiesAdd multipart docsTom Christiebefore adoptiond21e3ab
line 64why, one step back64* Multipart File UploadsSupport WSGI and ASGI apps. (#94)Tom Christiebefore adoptionbb86970
line 65why, one step back65* HTTP(S) Proxy Support *(TODO)*Truckin' onTom Christiebefore adoption6b60d95
lines 66–67why, one step back66* Connection Timeouts67* Streaming DownloadsSupport WSGI and ASGI apps. (#94)Tom Christiebefore adoptionbb86970
line 68why, one step back68* .netrc Support *(TODO)*Truckin' onTom Christiebefore adoption6b60d95
line 69why, one step back69* Chunked RequestsUpdate READMETom Christiebefore adoption665743a
line 70why, one step back70Docs tweaksTom Christiebefore adoption60dca3d
lines 71–75why, one step back71## Installation7273Install with pip:7475```shellRenaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 76why, one step back76$ pip install httpxDocs tweaksTom Christiebefore adoption60dca3d
lines 77–78why, one step back77```78Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 79why, one step back79httpx requires Python 3.6+Docs tweaksTom Christiebefore adoption60dca3d
line 80why, one step back80Tweak README (#87)Tom Christiebefore adoption9507ce2
line 81why, one step back81## DocumentationUpdate README.mdTom Christiebefore adoption01a3c09
line 82why, one step back82Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 83why, one step back83Project documentation is available at [www.encode.io/httpx/](https://www.encode.io/httpx/).Update README.mdTom Christiebefore adoption337eb70
line 84why, one step back84Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 85why, one step back85For a run-through of all the basics, head over to the [QuickStart](https://www.encode.io/httpx/quickstart/).Update READMETom Christiebefore adoption665743a
line 86why, one step back86Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
lines 87–89why, one step back87For more advanced topics, see the [Advanced Usage](https://www.encode.io/httpx/advanced/) section, or88the specific topics on making [Parallel Requests](https://www.encode.io/httpx/parallel/) or using the89[Async Client](https://www.encode.io/httpx/async/).Docs linksTom Christiebefore adoptionc2c87e1
line 90why, one step back90Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 91why, one step back91The [Developer Interface](https://www.encode.io/httpx/api/) provides a comprehensive API reference.Update READMETom Christiebefore adoption665743a
line 92why, one step back92Update READMETom Christiebefore adoption4fe2f69
lines 93–94why, one step back93## Dependencies94Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 95why, one step back95The httpx project relies on these excellent libraries:Tweak README (#87)Tom Christiebefore adoption9507ce2
line 96why, one step back96Update READMETom Christiebefore adoption4fe2f69
line 97why, one step back97* `h2` - HTTP/2 support.Add cookie interfacesTom Christiebefore adoption0717998
line 98why, one step back98* `h11` - HTTP/1.1 support.Update READMETom Christiebefore adoption4fe2f69
lines 99–104why, one step back99* `certifi` - SSL certificates.100* `chardet` - Fallback auto-detection for response encoding.101* `idna` - Internationalized domain name support.102* `rfc3986` - URL parsing & normalization.103* `brotlipy` - Decoding for "brotli" compressed responses. *(Optional)*104Update READMETom Christiebefore adoption58461d4
line 105why, one step back105A huge amount of credit is due to `requests` for the API layout thatUpdate README.mdTom Christiebefore adoption84b9691
lines 106–107why, one step back106much of this work follows, as well as to `urllib3` for plenty of design107inspiration around the lower level networking details.Docs tweaksTom Christiebefore adoption60dca3d
lines 108–109why, one step back108109<p align="center">— ⭐️ —</p>Update README.mdTom Christiebefore adoption7511d7a
line 110why, one step back110<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>