Skip to content
Myr

README.md

This file

Path

README.md

131 lines · 4.6 KiB · Markdown

Last changed by

Update docs for 0.15 (#1306)Tom Christiebefore adoptionc923f1a

History of this file

Take it

The walk stopped after 200 commits: lines older than 5829ecb point at it.

Implement streaming multipart uploads (#857)Florimond Mancabefore adoption5829ecb

lines 1–7why, one step back
1<p align="center">
2 <a href="https://www.python-httpx.org/"><img width="350" height="208" src="https://raw.githubusercontent.com/encode/httpx/master/docs/img/logo.jpg" alt='HTTPX'></a>3</p>45<p align="center"><strong>HTTPX</strong> <em>- A next-generation HTTP client for Python.</em></p>67<p align="center">

Test Suite on GitHub Actions (#907)Tom Christiebefore adoption19bf211

lines 8–9why, one step back
8<a href="https://github.com/encode/httpx/actions">
9 <img src="https://github.com/encode/httpx/workflows/Test%20Suite/badge.svg" alt="Test Suite">

Implement streaming multipart uploads (#857)Florimond Mancabefore adoption5829ecb

lines 10–18why, one step back
10</a>
11<a href="https://pypi.org/project/httpx/">12 <img src="https://badge.fury.io/py/httpx.svg" alt="Package version">13</a>14</p>1516HTTPX is a fully featured HTTP client for Python 3, which provides sync and async APIs, and support for both HTTP/1.1 and HTTP/2.1718**Note**: _HTTPX should be considered in beta. We believe we've got the public API to

Update docs for 0.15 (#1306)Tom Christiebefore adoptionc923f1a

line 19why, one step back
19a stable point now, but would strongly recommend pinning your dependencies to the `0.15.*`

Adjust 1.0 expectations. (#1202)Tom Christiebefore adoptionf4b407a

line 20why, one step back
20release, so that you're able to properly review [API changes between package updates](https://github.com/encode/httpx/blob/master/CHANGELOG.md). A 1.0 release is expected to be issued sometime in late 2020._

Implement streaming multipart uploads (#857)Florimond Mancabefore adoption5829ecb

lines 21–25why, one step back
21
22---2324Let's get started...25

Use pycon for Python console code blocks (#1187)Hugo van Kemenadebefore adoptiond10b7cd

line 26why, one step back
26```pycon

Implement streaming multipart uploads (#857)Florimond Mancabefore adoption5829ecb

lines 27–42why, one step back
27>>> import httpx
28>>> r = httpx.get('https://www.example.org/')29>>> r30<Response [200 OK]>31>>> r.status_code3220033>>> r.headers['content-type']34'text/html; charset=UTF-8'35>>> r.text36'<!doctype html>\n<html>\n<head>\n<title>Example Domain</title>...'37```3839Or, using the async API...4041_Use [IPython](https://ipython.readthedocs.io/en/stable/) or Python 3.8+ with `python -m asyncio` to try this code interactively._42

Use pycon for Python console code blocks (#1187)Hugo van Kemenadebefore adoptiond10b7cd

line 43why, one step back
43```pycon

Implement streaming multipart uploads (#857)Florimond Mancabefore adoption5829ecb

lines 44–60why, one step back
44>>> import httpx
45>>> async with httpx.AsyncClient() as client:46>>> r = await client.get('https://www.example.org/')47>>> r48<Response [200 OK]>49```5051## Features5253HTTPX builds on the well-established usability of `requests`, and gives you:5455* A broadly [requests-compatible API](https://www.python-httpx.org/compatibility/).56* Standard synchronous interface, but with [async support if you need it](https://www.python-httpx.org/async/).57* HTTP/1.1 [and HTTP/2 support](https://www.python-httpx.org/http2/).58* Ability to make requests directly to [WSGI applications](https://www.python-httpx.org/advanced/#calling-into-python-web-apps) or [ASGI applications](https://www.python-httpx.org/async/#calling-into-python-web-apps).59* Strict timeouts everywhere.60* Fully type annotated.

Update README.md (#1291)Tom Christiebefore adoptionff0febb

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

Implement streaming multipart uploads (#857)Florimond Mancabefore adoption5829ecb

lines 62–88why, one step back
62
63Plus all the standard features of `requests`...6465* International Domains and URLs66* Keep-Alive & Connection Pooling67* Sessions with Cookie Persistence68* Browser-style SSL Verification69* Basic/Digest Authentication70* Elegant Key/Value Cookies71* Automatic Decompression72* Automatic Content Decoding73* Unicode Response Bodies74* Multipart File Uploads75* HTTP(S) Proxy Support76* Connection Timeouts77* Streaming Downloads78* .netrc Support79* Chunked Requests8081## Installation8283Install with pip:8485```shell86$ pip install httpx87```88

HTTP/2 becomes fully optional (#1140)Tom Christiebefore adoption8d9dfb5

lines 89–94why, one step back
89Or, to include the optional HTTP/2 support, use:
9091```shell92$ pip install httpx[http2]93```94

Implement streaming multipart uploads (#857)Florimond Mancabefore adoption5829ecb

lines 95–116why, one step back
95HTTPX requires Python 3.6+.
9697## Documentation9899Project documentation is available at [https://www.python-httpx.org/](https://www.python-httpx.org/).100101For a run-through of all the basics, head over to the [QuickStart](https://www.python-httpx.org/quickstart/).102103For more advanced topics, see the [Advanced Usage](https://www.python-httpx.org/advanced/) section, the [async support](https://www.python-httpx.org/async/) section, or the [HTTP/2](https://www.python-httpx.org/http2/) section.104105The [Developer Interface](https://www.python-httpx.org/api/) provides a comprehensive API reference.106107To find out about tools that integrate with HTTPX, see [Third Party Packages](https://www.python-httpx.org/third-party-packages/).108109## Contribute110111If you want to contribute with HTTPX check out the [Contributing Guide](https://www.python-httpx.org/contributing/) to learn how to start.112113## Dependencies114115The HTTPX project relies on these excellent libraries:116

Update dependencies in docs (#969)Tom Christiebefore adoption99a5c78

lines 117–118why, one step back
117* `httpcore` - The underlying transport implementation for `httpx`.
118 * `h11` - HTTP/1.1 support.

HTTP/2 becomes fully optional (#1140)Tom Christiebefore adoption8d9dfb5

line 119why, one step back
119 * `h2` - HTTP/2 support. *(Optional)*

Implement streaming multipart uploads (#857)Florimond Mancabefore adoption5829ecb

lines 120–121why, one step back
120* `certifi` - SSL certificates.
121* `rfc3986` - URL parsing & normalization.

Packaging dependancy tweaks (#1206)Joebefore adoption15c1e42

line 122why, one step back
122 * `idna` - Internationalized domain name support.

Implement streaming multipart uploads (#857)Florimond Mancabefore adoption5829ecb

lines 123–131why, one step back
123* `sniffio` - Async library autodetection.
124* `brotlipy` - Decoding for "brotli" compressed responses. *(Optional)*125126A huge amount of credit is due to `requests` for the API layout that127much of this work follows, as well as to `urllib3` for plenty of design128inspiration around the lower-level networking details.129130<p align="center">&mdash; ⭐️ &mdash;</p>131<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>