Skip to content
Myr

README.md

This file

Path

README.md

115 lines · 3.9 KiB · Markdown

Last changed by

Document digest auth (#348)Yeray Diaz Diazbefore adoption8155352

History of this file

Take it

The walk stopped after 200 commits: lines older than 8c43fca 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">

Drop unreachable except block (#69)Tom Christiebefore adoption8c43fca

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">

Drop unreachable except block (#69)Tom Christiebefore adoption8c43fca

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">

Drop unreachable except block (#69)Tom Christiebefore adoption8c43fca

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

Update README.mdTom Christiebefore adoptionf7c5378

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

Drop unreachable except block (#69)Tom Christiebefore adoption8c43fca

line 18why, one step back
18

Tweak README (#87)Tom Christiebefore adoption9507ce2

line 19why, one step back
19**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 back
20

Tweak README (#87)Tom Christiebefore adoption9507ce2

lines 21–25why, one step back
21---
2223Let's get started...2425```python

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

lines 26–27why, one step back
26>>> import httpx
27>>> r = httpx.get('https://www.example.org/')

Int status codes (#92)Tom Christiebefore adoption56a7943

lines 28–29why, one step back
28>>> r
29<Response [200 OK]>

Tweak README (#87)Tom Christiebefore adoption9507ce2

line 30why, one step back
30>>> r.status_code

Int status codes (#92)Tom Christiebefore adoption56a7943

line 31why, one step back
31200

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

lines 32–33why, one step back
32>>> r.http_version
33'HTTP/1.1'

Tweak README (#87)Tom Christiebefore adoption9507ce2

lines 34–41why, one step back
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## Features41

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

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

Tweak README (#87)Tom Christiebefore adoption9507ce2

lines 43–45why, one step back
43
44* A requests-compatible API.45* HTTP/2 and HTTP/1.1 support.

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

lines 46–48why, one step back
46* 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 back
49* Strict timeouts everywhere.

Drop unreachable except block (#69)Tom Christiebefore adoption8c43fca

line 50why, one step back
50* Fully type annotated.

Update README.mdTom Christiebefore adoption23e0786

line 51why, one step back
51* 100% test coverage.

Drop unreachable except block (#69)Tom Christiebefore adoption8c43fca

line 52why, one step back
52

Tweak README (#87)Tom Christiebefore adoption9507ce2

line 53why, one step back
53Plus all the standard features of `requests`...

Drop unreachable except block (#69)Tom Christiebefore adoption8c43fca

lines 54–56why, one step back
54
55* International Domains and URLs56* Keep-Alive & Connection Pooling

Add cookie interfacesTom Christiebefore adoption0717998

line 57why, one step back
57* Sessions with Cookie Persistence

Drop unreachable except block (#69)Tom Christiebefore adoption8c43fca

line 58why, one step back
58* Browser-style SSL Verification

Document digest auth (#348)Yeray Diaz Diazbefore adoption8155352

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

Add cookie interfacesTom Christiebefore adoption0717998

line 60why, one step back
60* Elegant Key/Value Cookies

Drop unreachable except block (#69)Tom Christiebefore adoption8c43fca

lines 61–63why, one step back
61* Automatic Decompression
62* Automatic Content Decoding63* Unicode Response Bodies

Add multipart docsTom Christiebefore adoptiond21e3ab

line 64why, one step back
64* Multipart File Uploads

Support WSGI and ASGI apps. (#94)Tom Christiebefore adoptionbb86970

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

Drop unreachable except block (#69)Tom Christiebefore adoption8c43fca

lines 66–67why, one step back
66* Connection Timeouts
67* Streaming Downloads

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

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

Drop unreachable except block (#69)Tom Christiebefore adoption8c43fca

lines 69–70why, one step back
69* Chunked Requests
70

Docs tweaksTom Christiebefore adoption60dca3d

lines 71–75why, one step back
71## Installation
7273Install with pip:7475```shell

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

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

Docs tweaksTom Christiebefore adoption60dca3d

lines 77–78why, one step back
77```
78

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

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

Docs tweaksTom Christiebefore adoption60dca3d

line 80why, one step back
80

Tweak README (#87)Tom Christiebefore adoption9507ce2

line 81why, one step back
81## Documentation

Drop unreachable except block (#69)Tom Christiebefore adoption8c43fca

line 82why, one step back
82

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

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

Drop unreachable except block (#69)Tom Christiebefore adoption8c43fca

line 84why, one step back
84

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

line 85why, one step back
85For a run-through of all the basics, head over to the [QuickStart](https://www.encode.io/httpx/quickstart/).

Drop unreachable except block (#69)Tom Christiebefore adoption8c43fca

line 86why, one step back
86

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

lines 87–89why, one step back
87For more advanced topics, see the [Advanced Usage](https://www.encode.io/httpx/advanced/) section, or
88the 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 back
90

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

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

Drop unreachable except block (#69)Tom Christiebefore adoption8c43fca

line 92why, one step back
92

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

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

Drop unreachable except block (#69)Tom Christiebefore adoption8c43fca

lines 97–98why, one step back
97## Dependencies
98

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

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

Tweak README (#87)Tom Christiebefore adoption9507ce2

line 100why, one step back
100

Drop unreachable except block (#69)Tom Christiebefore adoption8c43fca

line 101why, one step back
101* `h2` - HTTP/2 support.

Add cookie interfacesTom Christiebefore adoption0717998

line 102why, one step back
102* `h11` - HTTP/1.1 support.

Drop unreachable except block (#69)Tom Christiebefore adoption8c43fca

lines 103–104why, one step back
103* `certifi` - SSL certificates.
104* `chardet` - Fallback auto-detection for response encoding.

Merge pull request #315 from cansarigol/hstspreload-docTom Christiebefore adoption67d96b6

line 105why, one step back
105* `hstspreload` - determines whether IDNA-encoded host should be only accessed via HTTPS.

Drop unreachable except block (#69)Tom Christiebefore adoption8c43fca

lines 106–112why, one step back
106* `idna` - Internationalized domain name support.
107* `rfc3986` - URL parsing & normalization.108* `brotlipy` - Decoding for "brotli" compressed responses. *(Optional)*109110A huge amount of credit is due to `requests` for the API layout that111much of this work follows, as well as to `urllib3` for plenty of design112inspiration around the lower level networking details.

Docs tweaksTom Christiebefore adoption60dca3d

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

Update README.mdTom Christiebefore adoption7511d7a

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