Skip to content
Myr

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 file

Take 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 back
1<p align="center">

Update README.mdTom Christiebefore adoptionedd7029

line 2why, one step back
2 <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 back
3</p>
4

Update README.mdTom Christiebefore adoption0450142

line 5why, one step back
5<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 back
6
7<p align="center">

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

lines 8–9why, one step back
8<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 back
10</a>

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

lines 11–12why, one step back
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">

Version 0.6.1Tom Christiebefore adoption7ff8483

line 13why, one step back
13</a>

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

lines 14–15why, one step back
14<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 back
16</a>

Update README.mdTom Christiebefore adoptionf7c5378

line 17why, one step back
17</p>

Version 0.6.1Tom Christiebefore adoption7ff8483

line 18why, one step back
18

Drop sync (#544)Tom Christiebefore adoption206c537

line 19why, one step back
19HTTPX is an asynchronous HTTP client, that supports HTTP/2 and HTTP/1.1.

Version 0.6.1Tom Christiebefore adoption7ff8483

line 20why, one step back
20

Drop sync (#544)Tom Christiebefore adoption206c537

lines 21–27why, one step back
21It can be used in high-performance async web frameworks, using either asyncio
22or 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.*27

Version 0.6.1Tom Christiebefore adoption7ff8483

lines 28–31why, one step back
28---
2930Let's get started...31

Drop sync (#544)Tom Christiebefore adoption206c537

lines 32–36why, one step back
32*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`.*36

Version 0.6.1Tom Christiebefore adoption7ff8483

line 37why, one step back
37```python

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

line 38why, one step back
38>>> import httpx

Drop sync (#544)Tom Christiebefore adoption206c537

line 39why, one step back
39>>> r = await httpx.get('https://www.example.org/')

Version 0.6.1Tom Christiebefore adoption7ff8483

lines 40–43why, one step back
40>>> r
41<Response [200 OK]>42>>> r.status_code43200

Force HTTP/1.1 on short-lived connections (#284)Seth Michael Larsonbefore adoptione7aa6d6

lines 44–45why, one step back
44>>> r.http_version
45'HTTP/1.1'

Version 0.6.1Tom Christiebefore adoption7ff8483

lines 46–53why, one step back
46>>> 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## Features53

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

line 54why, one step back
54HTTPX builds on the well-established usability of `requests`, and gives you:

Version 0.6.1Tom Christiebefore adoption7ff8483

line 55why, one step back
55

Drop sync (#544)Tom Christiebefore adoption206c537

line 56why, one step back
56* A requests-compatible API wherever possible.

Version 0.6.1Tom Christiebefore adoption7ff8483

line 57why, one step back
57* HTTP/2 and HTTP/1.1 support.

Drop sync (#544)Tom Christiebefore adoption206c537

line 58why, one step back
58* 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 back
59* 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 Verification

Document digest auth (#348)Yeray Diaz Diazbefore adoption8155352

line 69why, one step back
69* Basic/Digest Authentication

Version 0.6.1Tom Christiebefore adoption7ff8483

lines 70–74why, one step back
70* Elegant Key/Value Cookies
71* Automatic Decompression72* Automatic Content Decoding73* Unicode Response Bodies74* Multipart File Uploads

Drop sync (#544)Tom Christiebefore adoption206c537

line 75why, one step back
75* HTTP(S) Proxy Support

Version 0.6.1Tom Christiebefore adoption7ff8483

lines 76–77why, one step back
76* Connection Timeouts
77* Streaming Downloads

Documented netrc support (#225)Can Sarıgölbefore adoption21939fd

line 78why, one step back
78* .netrc Support

Version 0.6.1Tom Christiebefore adoption7ff8483

lines 79–85why, one step back
79* Chunked Requests
8081## Installation8283Install with pip:8485```shell

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

line 86why, one step back
86$ pip install httpx

Version 0.6.1Tom Christiebefore adoption7ff8483

lines 87–88why, one step back
87```
88

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

line 89why, one step back
89httpx requires Python 3.6+

Version 0.6.1Tom Christiebefore adoption7ff8483

lines 90–92why, one step back
90
91## Documentation92

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

line 93why, one step back
93Project documentation is available at [www.encode.io/httpx/](https://www.encode.io/httpx/).

Version 0.6.1Tom Christiebefore adoption7ff8483

line 94why, one step back
94

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

line 95why, one step back
95For 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 back
96

Drop sync (#544)Tom Christiebefore adoption206c537

line 97why, one step back
97For more advanced topics, see the [Advanced Usage](https://www.encode.io/httpx/advanced/) section.

Version 0.6.1Tom Christiebefore adoption7ff8483

line 98why, one step back
98

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

line 99why, one step back
99The [Developer Interface](https://www.encode.io/httpx/api/) provides a comprehensive API reference.

Version 0.6.1Tom Christiebefore adoption7ff8483

line 100why, one step back
100

Add additional info to Contributing Guide (#213)Humberto Rochabefore adoption7156c36

lines 101–104why, one step back
101## Contribute
102103If you want to contribute with HTTPX check out the [Contributing Guide](https://www.encode.io/httpx/contributing/) to learn how to start.104

Version 0.6.1Tom Christiebefore adoption7ff8483

lines 105–106why, one step back
105## Dependencies
106

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

line 107why, one step back
107The httpx project relies on these excellent libraries:

Version 0.6.1Tom Christiebefore adoption7ff8483

lines 108–112why, one step back
108
109* `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 back
113* `hstspreload` - determines whether IDNA-encoded host should be only accessed via HTTPS.

Version 0.6.1Tom Christiebefore adoption7ff8483

lines 114–119why, one step back
114* `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 design

Fix typos, spelling issues, and grammar in docs (#426)Kyle Galbraithbefore adoptionb65bce5

line 120why, one step back
120inspiration around the lower-level networking details.

Version 0.6.1Tom Christiebefore adoption7ff8483

lines 121–122why, one step back
121
122<p align="center">&mdash; ⭐️ &mdash;</p>

Update README.mdTom Christiebefore adoption7511d7a

line 123why, one step back
123<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>