__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 fileTake 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 back1from .__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, ClientRename PoolLimits to Limits (#1113)Florimond Mancabefore adoptionf67e925
line 5why, one step back5from ._config import Limits, PoolLimits, Proxy, Timeout, create_ssl_contextAdd 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
line 6why, one step back6from ._exceptions import (Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279
lines 7–8why, one step back7 CloseError,8 ConnectError,Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
lines 9–12why, one step back9 ConnectTimeout,10 CookieConflict,11 DecodingError,12 HTTPError,Raise HTTPStatusError in raise_from_status (#1072)François Voronbefore adoption27b0dbc
line 13why, one step back13 HTTPStatusError,Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
line 14why, one step back14 InvalidURL,Update to httpcore 0.10 (#1126)Tom Christiebefore adoption876e722
line 15why, one step back15 LocalProtocolError,Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
lines 16–20why, one step back16 NetworkError,17 NotRedirectResponse,18 PoolTimeout,19 ProtocolError,20 ProxyError,Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279
line 21why, one step back21 ReadError,Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
line 22why, one step back22 ReadTimeout,Update to httpcore 0.10 (#1126)Tom Christiebefore adoption876e722
line 23why, one step back23 RemoteProtocolError,Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
line 24why, one step back24 RequestBodyUnavailable,Exception hierarchy (#1095)Tom Christiebefore adoption9409900
line 25why, one step back25 RequestError,Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
lines 26–29why, one step back26 RequestNotRead,27 ResponseClosed,28 ResponseNotRead,29 StreamConsumed,Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279
line 30why, one step back30 StreamError,Map HTTPCore exceptions (#1044)Florimond Mancabefore adoptionbacc2d1
line 31why, one step back31 TimeoutException,Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
line 32why, one step back32 TooManyRedirects,Exception hierarchy (#1095)Tom Christiebefore adoption9409900
line 33why, one step back33 TransportError,Update to httpcore 0.10 (#1126)Tom Christiebefore adoption876e722
line 34why, one step back34 UnsupportedProtocol,Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279
line 35why, one step back35 WriteError,Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
lines 36–39why, one step back36 WriteTimeout,37)38from ._models import URL, Cookies, Headers, QueryParams, Request, Response39from ._status_codes import StatusCode, codesDrop deprecated API (#1057)Tom Christiebefore adoption3f96e74
lines 40–41why, one step back40from ._transports.asgi import ASGITransport41from ._transports.wsgi import WSGITransportAdd 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
lines 42–46why, one step back4243__all__ = [44 "__description__",45 "__title__",46 "__version__",Transport API (#963)Yeray Diaz Diazbefore adoptiond2816c9
line 47why, one step back47 "ASGITransport",Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
lines 48–51why, one step back48 "AsyncClient",49 "Auth",50 "BasicAuth",51 "Client",Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279
line 52why, one step back52 "CloseError",Add exported members test (#1179)Josep Cugatbefore adoption842ccfa
line 53why, one step back53 "codes",Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279
line 54why, one step back54 "ConnectError",Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
lines 55–56why, one step back55 "ConnectTimeout",56 "CookieConflict",Add exported members test (#1179)Josep Cugatbefore adoption842ccfa
lines 57–58why, one step back57 "Cookies",58 "create_ssl_context",Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
line 59why, one step back59 "DecodingError",Add exported members test (#1179)Josep Cugatbefore adoption842ccfa
lines 60–64why, one step back60 "delete",61 "DigestAuth",62 "get",63 "head",64 "Headers",Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
line 65why, one step back65 "HTTPError",Raise HTTPStatusError in raise_from_status (#1072)François Voronbefore adoption27b0dbc
line 66why, one step back66 "HTTPStatusError",Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
line 67why, one step back67 "InvalidURL",Add exported members test (#1179)Josep Cugatbefore adoption842ccfa
line 68why, one step back68 "Limits",Update to httpcore 0.10 (#1126)Tom Christiebefore adoption876e722
line 69why, one step back69 "LocalProtocolError",Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
lines 70–71why, one step back70 "NetworkError",71 "NotRedirectResponse",Add exported members test (#1179)Josep Cugatbefore adoption842ccfa
lines 72–74why, one step back72 "options",73 "patch",74 "PoolLimits",Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
line 75why, one step back75 "PoolTimeout",Add exported members test (#1179)Josep Cugatbefore adoption842ccfa
line 76why, one step back76 "post",Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
line 77why, one step back77 "ProtocolError",Add exported members test (#1179)Josep Cugatbefore adoption842ccfa
lines 78–81why, one step back78 "Proxy",79 "ProxyError",80 "put",81 "QueryParams",Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279
line 82why, one step back82 "ReadError",Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
line 83why, one step back83 "ReadTimeout",Add exported members test (#1179)Josep Cugatbefore adoption842ccfa
lines 84–86why, one step back84 "RemoteProtocolError",85 "request",86 "Request",Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
line 87why, one step back87 "RequestBodyUnavailable",Add exported members test (#1179)Josep Cugatbefore adoption842ccfa
lines 88–90why, one step back88 "RequestError",89 "RequestNotRead",90 "Response",Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
lines 91–92why, one step back91 "ResponseClosed",92 "ResponseNotRead",Single consistent name for status codes (#1088)Tom Christiebefore adoption35f09d1
line 93why, one step back93 "StatusCode",Add exported members test (#1179)Josep Cugatbefore adoption842ccfa
line 94why, one step back94 "stream",Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
line 95why, one step back95 "StreamConsumed",Add exceptions missing from top-level package (#1045)Florimond Mancabefore adoptionfab4279
line 96why, one step back96 "StreamError",Add exported members test (#1179)Josep Cugatbefore adoption842ccfa
line 97why, one step back97 "Timeout",Map HTTPCore exceptions (#1044)Florimond Mancabefore adoptionbacc2d1
line 98why, one step back98 "TimeoutException",Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
line 99why, one step back99 "TooManyRedirects",Exception hierarchy (#1095)Tom Christiebefore adoption9409900
line 100why, one step back100 "TransportError",Add exported members test (#1179)Josep Cugatbefore adoption842ccfa
line 101why, one step back101 "UnsupportedProtocol",Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
line 102why, one step back102 "URL",Add exported members test (#1179)Josep Cugatbefore adoption842ccfa
lines 103–104why, one step back103 "WriteError",104 "WriteTimeout",Transport API (#963)Yeray Diaz Diazbefore adoptiond2816c9
line 105why, one step back105 "WSGITransport",Add 'Third Party Packages' docs page (#876)Florimond Mancabefore adoption21f5337
line 106why, one step back106]Set `__module__ = 'httpx'` on everything we expose via the public API. (#1155)Tom Christiebefore adoptionc277fb8
lines 107–108why, one step back107108Add exported members test (#1179)Josep Cugatbefore adoption842ccfa
lines 109–112why, one step back109__locals = locals()110for __name in __all__:111 if not __name.startswith("__"):112 setattr(__locals[__name], "__module__", "httpx") # noqa