Skip to content
Myr

__init__.py

This file

Path

httpx/__init__.py

112 lines · 2.4 KiB · Python

Last changed by

Drop urllib3 in favor of public gist (#1182)Florimond Mancabefore adoption8fa8765

History of this file

Take it

The walk stopped after 200 commits: lines older than 21f5337 point at it.

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

lines 1–4why, one step back
1from .__version__ import __description__, __title__, __version__
2from ._api import delete, get, head, options, patch, post, put, request, stream3from ._auth import Auth, BasicAuth, DigestAuth4from ._client import AsyncClient, Client

Rename PoolLimits to Limits (#1113)Florimond Mancabefore adoptionf67e925

line 5why, one step back
5from ._config import Limits, PoolLimits, Proxy, Timeout, create_ssl_context

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

line 6why, one step back
6from ._exceptions import (

Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279

lines 7–8why, one step back
7 CloseError,
8 ConnectError,

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

lines 9–12why, one step back
9 ConnectTimeout,
10 CookieConflict,11 DecodingError,12 HTTPError,

Raise HTTPStatusError in raise_from_status (#1072)François Voronbefore adoption27b0dbc

line 13why, one step back
13 HTTPStatusError,

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

line 14why, one step back
14 InvalidURL,

Update to httpcore 0.10 (#1126)Tom Christiebefore adoption876e722

line 15why, one step back
15 LocalProtocolError,

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

lines 16–20why, one step back
16 NetworkError,
17 NotRedirectResponse,18 PoolTimeout,19 ProtocolError,20 ProxyError,

Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279

line 21why, one step back
21 ReadError,

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

line 22why, one step back
22 ReadTimeout,

Update to httpcore 0.10 (#1126)Tom Christiebefore adoption876e722

line 23why, one step back
23 RemoteProtocolError,

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

line 24why, one step back
24 RequestBodyUnavailable,

Exception hierarchy (#1095)Tom Christiebefore adoption9409900

line 25why, one step back
25 RequestError,

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

lines 26–29why, one step back
26 RequestNotRead,
27 ResponseClosed,28 ResponseNotRead,29 StreamConsumed,

Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279

line 30why, one step back
30 StreamError,

Map HTTPCore exceptions (#1044)Florimond Mancabefore adoptionbacc2d1

line 31why, one step back
31 TimeoutException,

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

line 32why, one step back
32 TooManyRedirects,

Exception hierarchy (#1095)Tom Christiebefore adoption9409900

line 33why, one step back
33 TransportError,

Update to httpcore 0.10 (#1126)Tom Christiebefore adoption876e722

line 34why, one step back
34 UnsupportedProtocol,

Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279

line 35why, one step back
35 WriteError,

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

lines 36–39why, one step back
36 WriteTimeout,
37)38from ._models import URL, Cookies, Headers, QueryParams, Request, Response39from ._status_codes import StatusCode, codes

Drop deprecated API (#1057)Tom Christiebefore adoption3f96e74

lines 40–41why, one step back
40from ._transports.asgi import ASGITransport
41from ._transports.wsgi import WSGITransport

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

lines 42–46why, one step back
42
43__all__ = [44 "__description__",45 "__title__",46 "__version__",

Transport API (#963)Yeray Diaz Diazbefore adoptiond2816c9

line 47why, one step back
47 "ASGITransport",

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

lines 48–51why, one step back
48 "AsyncClient",
49 "Auth",50 "BasicAuth",51 "Client",

Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279

line 52why, one step back
52 "CloseError",

Add exported members test (#1179)Josep Cugatbefore adoption842ccfa

line 53why, one step back
53 "codes",

Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279

line 54why, one step back
54 "ConnectError",

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

lines 55–56why, one step back
55 "ConnectTimeout",
56 "CookieConflict",

Add exported members test (#1179)Josep Cugatbefore adoption842ccfa

lines 57–58why, one step back
57 "Cookies",
58 "create_ssl_context",

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

line 59why, one step back
59 "DecodingError",

Add exported members test (#1179)Josep Cugatbefore adoption842ccfa

lines 60–64why, one step back
60 "delete",
61 "DigestAuth",62 "get",63 "head",64 "Headers",

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

line 65why, one step back
65 "HTTPError",

Raise HTTPStatusError in raise_from_status (#1072)François Voronbefore adoption27b0dbc

line 66why, one step back
66 "HTTPStatusError",

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

line 67why, one step back
67 "InvalidURL",

Add exported members test (#1179)Josep Cugatbefore adoption842ccfa

line 68why, one step back
68 "Limits",

Update to httpcore 0.10 (#1126)Tom Christiebefore adoption876e722

line 69why, one step back
69 "LocalProtocolError",

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

lines 70–71why, one step back
70 "NetworkError",
71 "NotRedirectResponse",

Add exported members test (#1179)Josep Cugatbefore adoption842ccfa

lines 72–74why, one step back
72 "options",
73 "patch",74 "PoolLimits",

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

line 75why, one step back
75 "PoolTimeout",

Add exported members test (#1179)Josep Cugatbefore adoption842ccfa

line 76why, one step back
76 "post",

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

line 77why, one step back
77 "ProtocolError",

Add exported members test (#1179)Josep Cugatbefore adoption842ccfa

lines 78–81why, one step back
78 "Proxy",
79 "ProxyError",80 "put",81 "QueryParams",

Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279

line 82why, one step back
82 "ReadError",

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

line 83why, one step back
83 "ReadTimeout",

Add exported members test (#1179)Josep Cugatbefore adoption842ccfa

lines 84–86why, one step back
84 "RemoteProtocolError",
85 "request",86 "Request",

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

line 87why, one step back
87 "RequestBodyUnavailable",

Add exported members test (#1179)Josep Cugatbefore adoption842ccfa

lines 88–90why, one step back
88 "RequestError",
89 "RequestNotRead",90 "Response",

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

lines 91–92why, one step back
91 "ResponseClosed",
92 "ResponseNotRead",

Single consistent name for status codes (#1088)Tom Christiebefore adoption35f09d1

line 93why, one step back
93 "StatusCode",

Add exported members test (#1179)Josep Cugatbefore adoption842ccfa

line 94why, one step back
94 "stream",

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

line 95why, one step back
95 "StreamConsumed",

Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279

line 96why, one step back
96 "StreamError",

Add exported members test (#1179)Josep Cugatbefore adoption842ccfa

line 97why, one step back
97 "Timeout",

Map HTTPCore exceptions (#1044)Florimond Mancabefore adoptionbacc2d1

line 98why, one step back
98 "TimeoutException",

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

line 99why, one step back
99 "TooManyRedirects",

Exception hierarchy (#1095)Tom Christiebefore adoption9409900

line 100why, one step back
100 "TransportError",

Add exported members test (#1179)Josep Cugatbefore adoption842ccfa

line 101why, one step back
101 "UnsupportedProtocol",

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

line 102why, one step back
102 "URL",

Add exported members test (#1179)Josep Cugatbefore adoption842ccfa

lines 103–104why, one step back
103 "WriteError",
104 "WriteTimeout",

Transport API (#963)Yeray Diaz Diazbefore adoptiond2816c9

line 105why, one step back
105 "WSGITransport",

Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337

line 106why, one step back
106]

Set `__module__ = 'httpx'` on everything we expose via the public API. (#1155)Tom Christiebefore adoptionc277fb8

lines 107–108why, one step back
107
108

Add exported members test (#1179)Josep Cugatbefore adoption842ccfa

lines 109–112why, one step back
109__locals = locals()
110for __name in __all__:111 if not __name.startswith("__"):112 setattr(__locals[__name], "__module__", "httpx") # noqa