README.md
This file
Path
README.md
123 lines · 3.9 KiB · Markdown
Last changed by
Drop sync (#544)Tom Christiebefore adoption206c537
History of this fileTake it
The walk stopped after 200 commits: lines older than 7ff8483 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">Version 0.6.1Tom Christiebefore adoption7ff8483
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">Version 0.6.1Tom Christiebefore adoption7ff8483
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">Version 0.6.1Tom Christiebefore adoption7ff8483
line 16why, one step back16</a>Update README.mdTom Christiebefore adoptionf7c5378
line 17why, one step back17</p>Version 0.6.1Tom Christiebefore adoption7ff8483
line 18why, one step back18Drop sync (#544)Tom Christiebefore adoption206c537
line 19why, one step back19HTTPX is an asynchronous HTTP client, that supports HTTP/2 and HTTP/1.1.Version 0.6.1Tom Christiebefore adoption7ff8483
line 20why, one step back20Drop sync (#544)Tom Christiebefore adoption206c537
lines 21–27why, one step back21It can be used in high-performance async web frameworks, using either asyncio22or trio, and is able to support making large numbers of requests concurrently.2324**Note**: *The 0.8 release switched HTTPX into focusing exclusively on the async25client. It is possible that we'll look at re-introducing a sync API at a26later date.*27Version 0.6.1Tom Christiebefore adoption7ff8483
lines 28–31why, one step back28---2930Let's get started...31Drop sync (#544)Tom Christiebefore adoption206c537
lines 32–36why, one step back32*The standard Python REPL does not allow top-level async statements.*3334*To run async examples directly you'll probably want to either use `ipython`,35or use Python 3.8 with `python -m asyncio`.*36Version 0.6.1Tom Christiebefore adoption7ff8483
line 37why, one step back37```pythonRenaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 38why, one step back38>>> import httpxDrop sync (#544)Tom Christiebefore adoption206c537
line 39why, one step back39>>> r = await httpx.get('https://www.example.org/')Version 0.6.1Tom Christiebefore adoption7ff8483
lines 40–43why, one step back40>>> r41<Response [200 OK]>42>>> r.status_code43200Force HTTP/1.1 on short-lived connections (#284)Seth Michael Larsonbefore adoptione7aa6d6
lines 44–45why, one step back44>>> r.http_version45'HTTP/1.1'Version 0.6.1Tom Christiebefore adoption7ff8483
lines 46–53why, one step back46>>> r.headers['content-type']47'text/html; charset=UTF-8'48>>> r.text49'<!doctype html>\n<html>\n<head>\n<title>Example Domain</title>...'50```5152## Features53Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 54why, one step back54HTTPX builds on the well-established usability of `requests`, and gives you:Version 0.6.1Tom Christiebefore adoption7ff8483
line 55why, one step back55Drop sync (#544)Tom Christiebefore adoption206c537
line 56why, one step back56* A requests-compatible API wherever possible.Version 0.6.1Tom Christiebefore adoption7ff8483
line 57why, one step back57* HTTP/2 and HTTP/1.1 support.Drop sync (#544)Tom Christiebefore adoption206c537
line 58why, one step back58* Ability to [make requests directly to ASGI applications](https://www.encode.io/httpx/advanced/#calling-into-python-web-apps).Version 0.6.1Tom Christiebefore adoption7ff8483
lines 59–68why, one step back59* Strict timeouts everywhere.60* Fully type annotated.61* 100% test coverage.6263Plus all the standard features of `requests`...6465* International Domains and URLs66* Keep-Alive & Connection Pooling67* Sessions with Cookie Persistence68* Browser-style SSL VerificationDocument digest auth (#348)Yeray Diaz Diazbefore adoption8155352
line 69why, one step back69* Basic/Digest AuthenticationVersion 0.6.1Tom Christiebefore adoption7ff8483
lines 70–74why, one step back70* Elegant Key/Value Cookies71* Automatic Decompression72* Automatic Content Decoding73* Unicode Response Bodies74* Multipart File UploadsDrop sync (#544)Tom Christiebefore adoption206c537
line 75why, one step back75* HTTP(S) Proxy SupportVersion 0.6.1Tom Christiebefore adoption7ff8483
lines 76–77why, one step back76* Connection Timeouts77* Streaming DownloadsDocumented netrc support (#225)Can Sarıgölbefore adoption21939fd
line 78why, one step back78* .netrc SupportVersion 0.6.1Tom Christiebefore adoption7ff8483
lines 79–85why, one step back79* Chunked Requests8081## Installation8283Install with pip:8485```shellRenaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 86why, one step back86$ pip install httpxVersion 0.6.1Tom Christiebefore adoption7ff8483
lines 87–88why, one step back87```88Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 89why, one step back89httpx requires Python 3.6+Version 0.6.1Tom Christiebefore adoption7ff8483
lines 90–92why, one step back9091## Documentation92Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 93why, one step back93Project documentation is available at [www.encode.io/httpx/](https://www.encode.io/httpx/).Version 0.6.1Tom Christiebefore adoption7ff8483
line 94why, one step back94Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 95why, one step back95For a run-through of all the basics, head over to the [QuickStart](https://www.encode.io/httpx/quickstart/).Version 0.6.1Tom Christiebefore adoption7ff8483
line 96why, one step back96Drop sync (#544)Tom Christiebefore adoption206c537
line 97why, one step back97For more advanced topics, see the [Advanced Usage](https://www.encode.io/httpx/advanced/) section.Version 0.6.1Tom Christiebefore adoption7ff8483
line 98why, one step back98Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 99why, one step back99The [Developer Interface](https://www.encode.io/httpx/api/) provides a comprehensive API reference.Version 0.6.1Tom Christiebefore adoption7ff8483
line 100why, one step back100Add additional info to Contributing Guide (#213)Humberto Rochabefore adoption7156c36
lines 101–104why, one step back101## Contribute102103If you want to contribute with HTTPX check out the [Contributing Guide](https://www.encode.io/httpx/contributing/) to learn how to start.104Version 0.6.1Tom Christiebefore adoption7ff8483
lines 105–106why, one step back105## Dependencies106Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b
line 107why, one step back107The httpx project relies on these excellent libraries:Version 0.6.1Tom Christiebefore adoption7ff8483
lines 108–112why, one step back108109* `h2` - HTTP/2 support.110* `h11` - HTTP/1.1 support.111* `certifi` - SSL certificates.112* `chardet` - Fallback auto-detection for response encoding.Merge pull request #315 from cansarigol/hstspreload-docTom Christiebefore adoption67d96b6
line 113why, one step back113* `hstspreload` - determines whether IDNA-encoded host should be only accessed via HTTPS.Version 0.6.1Tom Christiebefore adoption7ff8483
lines 114–119why, one step back114* `idna` - Internationalized domain name support.115* `rfc3986` - URL parsing & normalization.116* `brotlipy` - Decoding for "brotli" compressed responses. *(Optional)*117118A huge amount of credit is due to `requests` for the API layout that119much 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 120why, one step back120inspiration around the lower-level networking details.Version 0.6.1Tom Christiebefore adoption7ff8483
lines 121–122why, one step back121122<p align="center">— ⭐️ —</p>Update README.mdTom Christiebefore adoption7511d7a
line 123why, one step back123<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>