Skip to content
Myr

README.md

This file

Path

README.md

112 lines · 3.6 KiB · Markdown

Last changed by

Update README.mdTom Christiebefore adoption95db220

History of this file

Take it

Branding updates for httpx (#130)Tom Christiebefore adoption17bb165

lines 1–3why, one step back
1<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 back
4

Branding updates for httpx (#130)Tom Christiebefore adoption17bb165

line 5why, one step back
5<p align="center">

Update README.mdTom Christiebefore adoption95db220

line 6why, one step back
6HTTPX

Branding updates for httpx (#130)Tom Christiebefore adoption17bb165

lines 7–8why, one step back
7</p>
8

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

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

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

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

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

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

Branding updates for httpx (#130)Tom Christiebefore adoption17bb165

line 19why, one step back
19<em>A next-generation HTTP client for Python.</em>

Update READMETom Christiebefore adoption665743a

line 20why, one step back
20

Tweak README (#87)Tom Christiebefore adoption9507ce2

line 21why, one step back
21**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 back
22

Tweak README (#87)Tom Christiebefore adoption9507ce2

lines 23–27why, one step back
23---
2425Let's get started...2627```python

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

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

Int status codes (#92)Tom Christiebefore adoption56a7943

lines 30–31why, one step back
30>>> r
31<Response [200 OK]>

Tweak README (#87)Tom Christiebefore adoption9507ce2

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

Int status codes (#92)Tom Christiebefore adoption56a7943

line 33why, one step back
33200

Tweak README (#87)Tom Christiebefore adoption9507ce2

lines 34–43why, one step back
34>>> r.protocol
35'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## Features43

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

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

Tweak README (#87)Tom Christiebefore adoption9507ce2

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

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

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

Truckin' onTom Christiebefore adoption6b60d95

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

Update README.mdTom Christiebefore adoption23e0786

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

Update READMETom Christiebefore adoption665743a

line 54why, one step back
54

Tweak README (#87)Tom Christiebefore adoption9507ce2

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

Update READMETom Christiebefore adoption665743a

line 56why, one step back
56

Truckin' onTom Christiebefore adoption6b60d95

lines 57–58why, one step back
57* International Domains and URLs
58* Keep-Alive & Connection Pooling

Add cookie interfacesTom Christiebefore adoption0717998

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

Truckin' onTom Christiebefore adoption6b60d95

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

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

line 61why, one step back
61* Basic/Digest Authentication *(Digest is still TODO)*

Add cookie interfacesTom Christiebefore adoption0717998

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

Truckin' onTom Christiebefore adoption6b60d95

lines 63–65why, one step back
63* Automatic Decompression
64* Automatic Content Decoding65* Unicode Response Bodies

Add multipart docsTom Christiebefore adoptiond21e3ab

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

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

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

Truckin' onTom Christiebefore adoption6b60d95

lines 68–69why, one step back
68* Connection Timeouts
69* Streaming Downloads

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

line 70why, one step back
70* .netrc Support *(TODO)*

Truckin' onTom Christiebefore adoption6b60d95

line 71why, one step back
71* Chunked Requests

Update READMETom Christiebefore adoption665743a

line 72why, one step back
72

Docs tweaksTom Christiebefore adoption60dca3d

lines 73–77why, one step back
73## Installation
7475Install with pip:7677```shell

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

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

Docs tweaksTom Christiebefore adoption60dca3d

lines 79–80why, one step back
79```
80

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

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

Docs tweaksTom Christiebefore adoption60dca3d

line 82why, one step back
82

Tweak README (#87)Tom Christiebefore adoption9507ce2

line 83why, one step back
83## Documentation

Update README.mdTom Christiebefore adoption01a3c09

line 84why, one step back
84

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

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

Update README.mdTom Christiebefore adoption337eb70

line 86why, one step back
86

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

line 87why, one step back
87For 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 back
88

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

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

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

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

StuffTom Christiebefore adoption30530d4

line 94why, one step back
94

Update READMETom Christiebefore adoption4fe2f69

lines 95–96why, one step back
95## Dependencies
96

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

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

Tweak README (#87)Tom Christiebefore adoption9507ce2

line 98why, one step back
98

Update READMETom Christiebefore adoption4fe2f69

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

Add cookie interfacesTom Christiebefore adoption0717998

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

Update READMETom Christiebefore adoption4fe2f69

lines 101–106why, one step back
101* `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)*106

Update READMETom Christiebefore adoption58461d4

line 107why, one step back
107A huge amount of credit is due to `requests` for the API layout that

Update README.mdTom Christiebefore adoption84b9691

lines 108–109why, one step back
108much of this work follows, as well as to `urllib3` for plenty of design
109inspiration around the lower level networking details.

Docs tweaksTom Christiebefore adoption60dca3d

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

Renaming -> httpx (#129)Tom Christiebefore adoption2d09d5b

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